/*
 * JFrame_SchoolManager.java
 *
 * Created on Feb 13, 2012, 9:51:29 AM
 */
package gui;

import entity.Account;
import entity.Class;
import entity.ClassRoomBlock;
import entity.Mark;
import entity.PointType;
import entity.Province;
import entity.Semester;
import entity.Subject;
import entity.Student;
import entity.Teacher;
import entity.TeacherClassDetails;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.DefaultComboBoxModel;
import javax.swing.DefaultListModel;
import javax.swing.JComboBox;
import javax.swing.JOptionPane;
import javax.swing.JTextField;
import javax.swing.UIManager;
import manager.Manager;
import model.AccountListModel;
import model.ClassRoomBlockListModel;
import model.ClassTableModel;
import model.MarkTableModel;
import model.ProvinceListModel;
import model.ResultOfClassTableModel;
import model.ResultOfStudentTableModel;
import model.SemesterListModel;
import model.StudentTableModel;
import model.SubjectTableModel;
import model.TeacherTableModel;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.apache.poi.ss.usermodel.CellStyle;
import org.apache.poi.ss.usermodel.Font;
import org.apache.poi.ss.usermodel.IndexedColors;
import org.apache.poi.ss.usermodel.PrintSetup;
import org.apache.poi.ss.usermodel.Row;
import org.apache.poi.ss.usermodel.Workbook;
import org.apache.poi.ss.util.CellRangeAddress;

/**
 *
 * @author Noi
 */
public class JFrame_SchoolManager extends javax.swing.JFrame {

    private boolean enabledAddProvince, enabledEditProvince;
    private boolean enabledAddClassRoomBlock, enabledEditClassRoomBlock;
    private boolean enabledAddSemester, enabledEditSemester;
    private boolean enabledAddTeacher, enabledEditTeacher;
    private boolean enabledAddClass, enabledEditClass;
    private boolean enabledAddSubject, enabledEditSubject;
    private boolean enabledAddStudent, enabledEditStudent;
    private boolean enabledAddMark, enabledEditMark;
    private boolean enabledAddAccount;
    private DefaultComboBoxModel dayBirthdayModel, monthBirthdayModel, yearBirthdayModel;
    private DefaultComboBoxModel dayModel, monthModel, yearModel;
    private DefaultComboBoxModel salaryScoreModel, seniorityModel, allowanceModel;
    private int year;
    private String className;
    private Account account;

    /** Creates new form JFrame_SchoolManager */
    public JFrame_SchoolManager() {
        initComponents();

        this.manager = new Manager();
        this.setLocationRelativeTo(null);
        this.setExtendedState(MAXIMIZED_BOTH);

        this.pnlHome.setVisible(true);
        this.itemLogout.setEnabled(false);
        this.itemChangeAccount.setEnabled(false);
        this.mnuManager.setEnabled(false);
        this.mnuStatistic.setEnabled(false);
    }

    private void createModelsForManagers() {
        this.classModel = new ClassTableModel(manager);
        this.tblClassManager.setModel(classModel);

        this.provinceModel = new ProvinceListModel(manager);
        this.listProvinceManager.setModel(provinceModel);

        this.classRoomBlockModel = new ClassRoomBlockListModel(manager);
        this.listClassRoomBlockManager.setModel(classRoomBlockModel);

        this.semesterModel = new SemesterListModel(manager);
        this.listSemesterManager.setModel(semesterModel);

        this.teacherModel = new TeacherTableModel(manager);
        this.tblTeacherManager.setModel(teacherModel);

        this.subjectModel = new SubjectTableModel(manager);
        this.tblSubjectManager.setModel(subjectModel);

        this.studentModel = new StudentTableModel(manager);
        this.tblStudentManager.setModel(studentModel);

        this.markModel = new MarkTableModel(manager, this.account);

        this.provinceComboBoxModel = new DefaultComboBoxModel<Province>();
        for (int i = 0; i < this.manager.getProvinceManager().size(); i++) {
            if (this.manager.getProvinceManager().get(i).isStatus()) {
                provinceComboBoxModel.addElement(this.manager.getProvinceManager().get(i));
            }
        }

        this.accountModel = new AccountListModel(manager);
        this.listAccountManager.setModel(accountModel);
    }

    private void createComboBoxForStudent() {
        this.cbbProvinceForStudent.setModel(this.provinceComboBoxModel);

        this.classComboBoxModel = new DefaultComboBoxModel<Class>();
        if (account.getAuthorization() == 1) {
            for (int i = 0; i < this.manager.getClassManager().size(); i++) {
                if (this.manager.getClassManager().get(i).isStatus()) {
                    this.classComboBoxModel.addElement(this.manager.getClassManager().get(i));
                }
            }
        } else {
            for (int i = 0; i < this.manager.getTeacherClassDetailsManager().size(); i++) {
                if (this.manager.getTeacherClassDetailsManager().get(i).getTeacherID() == Integer.valueOf(account.getAccountID()) && this.manager.getTeacherClassDetailsManager().get(i).isStatus()) {
                    this.classComboBoxModel.addElement(this.manager.getClassManager().getById(this.manager.getTeacherClassDetailsManager().get(i).getClassID()));
                }
            }
        }
        this.cbbClassForStudent.setModel(this.classComboBoxModel);

        this.cbbDayForStudent.setModel(dayBirthdayModel);
        this.cbbMonthForStudent.setModel(monthBirthdayModel);
        this.cbbYearForStudent.setModel(yearBirthdayModel);
    }

    private void createComboBoxForResultOfStudentAllYear() {
        this.classRoomBlockByStudent = new DefaultComboBoxModel();
        this.classRoomBlockByStudent.addElement("Năm hiện tại");
        this.classRoomBlockByStudent.addElement("Toàn bộ kết quả học tập");
        this.cbbCriteriaByStudent.setModel(classRoomBlockByStudent);

        this.cbbClassByStudent.setModel(this.classComboBoxModel);
        Class classSelected = (Class) this.cbbClassByStudent.getSelectedItem();

        this.studentByStudentModel = new DefaultComboBoxModel<Student>();
        if (classSelected != null) {
            for (int i = 0; i < this.manager.getStudentManager().size(); i++) {
                if (this.manager.getStudentManager().get(i).getClassID().equals(classSelected.getClassID())) {
                    this.studentByStudentModel.addElement(this.manager.getStudentManager().get(i));
                }
            }
        }
        this.cbbStudentByStudent.setModel(this.studentByStudentModel);
    }

    private void createComboBoxsForSubject() {
        this.cbbClassRoomBlockForSubject.setModel(classRoomBlockComboBoxModel);

        this.periodModel = new DefaultComboBoxModel();
        for (int i = 1; i <= 100; i++) {
            this.periodModel.addElement(i);
        }
        this.cbbClassPeriodForSubject.setModel(periodModel);

        this.typePointModel = new DefaultComboBoxModel();
        for (int i = 0; i < this.manager.getPointTypeManager().size(); i++) {
            this.typePointModel.addElement(this.manager.getPointTypeManager().get(i));
        }
        this.cbbPointTypeForSubject.setModel(typePointModel);
    }

    private void createComboBoxsForClass() {
        this.classRoomBlockComboBoxModel = new DefaultComboBoxModel<ClassRoomBlock>();
        for (int i = 0; i < this.manager.getClassRoomBlockManager().size(); i++) {
            if (this.manager.getClassRoomBlockManager().get(i).isStatus()) {
                this.classRoomBlockComboBoxModel.addElement(this.manager.getClassRoomBlockManager().get(i));
            }
        }
        this.cbbClassRoomBlockForClass.setModel(classRoomBlockComboBoxModel);

        this.teacherComboBoxModel = new DefaultComboBoxModel<Teacher>();
        for (int i = 0; i < this.manager.getTeacherManager().size(); i++) {
            if (this.manager.getTeacherManager().get(i).isStatus()) {
                this.teacherComboBoxModel.addElement(this.manager.getTeacherManager().get(i));
            }
        }
        this.cbbTeacherForClass.setModel(teacherComboBoxModel);

        Calendar calendar = new GregorianCalendar();
        this.year = calendar.get(Calendar.YEAR);

        this.fromYearModel = new DefaultComboBoxModel();
        for (int i = year; i < year + 10; i++) {
            this.fromYearModel.addElement(i);
        }
        this.cbbFromYearForClass.setModel(fromYearModel);

        this.txtToYearForClass.setEditable(false);
        this.txtToYearForClass.setText(String.valueOf(year + 1));

        ClassRoomBlock block = (ClassRoomBlock) this.cbbClassRoomBlockForClass.getSelectedItem();
        this.className = block.getClassRoomBlockID() + this.cbbClassNameForClass.getSelectedItem().toString();
        this.txtClassIDForClass.setText(this.className + "-" + this.cbbFromYearForClass.getSelectedItem().toString());

        this.setVisibleComponentsForClass(false);
    }

    private void createComboBoxsForTeacher() {
        this.cbbProvinceForTeacher.setModel(provinceComboBoxModel);

        this.dayBirthdayModel = new DefaultComboBoxModel();
        this.monthBirthdayModel = new DefaultComboBoxModel();
        this.yearBirthdayModel = new DefaultComboBoxModel();
        this.dayModel = new DefaultComboBoxModel();
        this.monthModel = new DefaultComboBoxModel();
        this.yearModel = new DefaultComboBoxModel();

        for (int i = 1; i <= 31; i++) {
            this.dayBirthdayModel.addElement(i);
            this.dayModel.addElement(i);
        }
        this.cbbDayBirthdayForTeacher.setModel(dayBirthdayModel);
        this.cbbDayForTeacher.setModel(dayModel);

        for (int i = 1; i <= 12; i++) {
            this.monthBirthdayModel.addElement(i);
            this.monthModel.addElement(i);
        }
        this.cbbMonthBirthdayForTeacher.setModel(monthBirthdayModel);
        this.cbbMonthForTeacher.setModel(monthModel);

        for (int i = 1930; i < 2030; i++) {
            this.yearBirthdayModel.addElement(i);
            this.yearModel.addElement(i);
        }
        this.cbbYearBirthdayForTeacher.setModel(yearBirthdayModel);
        this.cbbYearForTeacher.setModel(yearModel);

        this.salaryScoreModel = new DefaultComboBoxModel();
        for (float i = 150; i <= 1000; i++) {
            this.salaryScoreModel.addElement((float) i / 100);
        }
        this.cbbSalaryScoreForTeacher.setModel(salaryScoreModel);

        this.seniorityModel = new DefaultComboBoxModel();
        this.allowanceModel = new DefaultComboBoxModel();
        for (float i = 0; i <= 100; i++) {
            this.seniorityModel.addElement(i);
            this.allowanceModel.addElement(i);
        }
        this.cbbSeniorityScoreForTeacher.setModel(seniorityModel);
        this.cbbAllowanceForTeacher.setModel(allowanceModel);

        this.setVisibleComponentsForTeacher(false);
    }

    private void createComboBoxsForMark() {
        this.listClassForMarkModel = new DefaultListModel<Class>();
        this.listStudentForMarkModel = new DefaultListModel<Student>();
        this.listSubjectForMarkModel = new DefaultListModel<Subject>();

        this.listClassRoomBlockForMark.setModel(this.classRoomBlockModel);
        this.listClassRoomBlockForMark.setSelectedIndex(0);

        this.markSemesterIISubject1Model = new DefaultComboBoxModel();
        this.markSemesterIISubject2Model = new DefaultComboBoxModel();
        this.markSemesterIISubject3Model = new DefaultComboBoxModel();
        this.markSemesterIISubject4Model = new DefaultComboBoxModel();
        this.markSemesterIISubject5Model = new DefaultComboBoxModel();
        this.markSemesterIISubject6Model = new DefaultComboBoxModel();
        this.markSemesterIISubject7Model = new DefaultComboBoxModel();
        this.markSemesterIISubject8Model = new DefaultComboBoxModel();
        this.markSemesterIISubject9Model = new DefaultComboBoxModel();
        this.markSemesterIISubject10Model = new DefaultComboBoxModel();
        this.markSemesterIISubject11Model = new DefaultComboBoxModel();
        this.markSemesterIISubject12Model = new DefaultComboBoxModel();
        this.markSemesterISubject1Model = new DefaultComboBoxModel();
        this.markSemesterISubject2Model = new DefaultComboBoxModel();
        this.markSemesterISubject3Model = new DefaultComboBoxModel();
        this.markSemesterISubject4Model = new DefaultComboBoxModel();
        this.markSemesterISubject5Model = new DefaultComboBoxModel();
        this.markSemesterISubject6Model = new DefaultComboBoxModel();
        this.markSemesterISubject7Model = new DefaultComboBoxModel();
        this.markSemesterISubject8Model = new DefaultComboBoxModel();
        this.markSemesterISubject9Model = new DefaultComboBoxModel();
        this.markSemesterISubject10Model = new DefaultComboBoxModel();
        this.markSemesterISubject11Model = new DefaultComboBoxModel();
        this.markSemesterISubject12Model = new DefaultComboBoxModel();

        this.markSemesterIByStudent1Model = new DefaultComboBoxModel();
        this.markSemesterIByStudent2Model = new DefaultComboBoxModel();
        this.markSemesterIByStudent3Model = new DefaultComboBoxModel();
        this.markSemesterIByStudent4Model = new DefaultComboBoxModel();
        this.markSemesterIByStudent5Model = new DefaultComboBoxModel();
        this.markSemesterIByStudent6Model = new DefaultComboBoxModel();
        this.markSemesterIByStudent7Model = new DefaultComboBoxModel();
        this.markSemesterIByStudent8Model = new DefaultComboBoxModel();
        this.markSemesterIByStudent9Model = new DefaultComboBoxModel();
        this.markSemesterIByStudent10Model = new DefaultComboBoxModel();
        this.markSemesterIIByStudent1Model = new DefaultComboBoxModel();
        this.markSemesterIIByStudent2Model = new DefaultComboBoxModel();
        this.markSemesterIIByStudent3Model = new DefaultComboBoxModel();
        this.markSemesterIIByStudent4Model = new DefaultComboBoxModel();
        this.markSemesterIIByStudent5Model = new DefaultComboBoxModel();
        this.markSemesterIIByStudent6Model = new DefaultComboBoxModel();
        this.markSemesterIIByStudent7Model = new DefaultComboBoxModel();
        this.markSemesterIIByStudent8Model = new DefaultComboBoxModel();
        this.markSemesterIIByStudent9Model = new DefaultComboBoxModel();
        this.markSemesterIIByStudent10Model = new DefaultComboBoxModel();
        
        this.cbbMarkSemesterIByStudent1.setModel(this.markSemesterIByStudent1Model);
        this.cbbMarkSemesterIByStudent2.setModel(this.markSemesterIByStudent2Model);
        this.cbbMarkSemesterIByStudent3.setModel(this.markSemesterIByStudent3Model);
        this.cbbMarkSemesterIByStudent4.setModel(this.markSemesterIByStudent4Model);
        this.cbbMarkSemesterIByStudent5.setModel(this.markSemesterIByStudent5Model);
        this.cbbMarkSemesterIByStudent6.setModel(this.markSemesterIByStudent6Model);
        this.cbbMarkSemesterIByStudent7.setModel(this.markSemesterIByStudent7Model);
        this.cbbMarkSemesterIByStudent8.setModel(this.markSemesterIByStudent8Model);
        this.cbbMarkSemesterIByStudent9.setModel(this.markSemesterIByStudent9Model);
        this.cbbMarkSemesterIByStudent10.setModel(this.markSemesterIByStudent10Model);
        this.cbbMarkSemesterIIByStudent1.setModel(this.markSemesterIIByStudent1Model);
        this.cbbMarkSemesterIIByStudent2.setModel(this.markSemesterIIByStudent2Model);
        this.cbbMarkSemesterIIByStudent3.setModel(this.markSemesterIIByStudent3Model);
        this.cbbMarkSemesterIIByStudent4.setModel(this.markSemesterIIByStudent4Model);
        this.cbbMarkSemesterIIByStudent5.setModel(this.markSemesterIIByStudent5Model);
        this.cbbMarkSemesterIIByStudent6.setModel(this.markSemesterIIByStudent6Model);
        this.cbbMarkSemesterIIByStudent7.setModel(this.markSemesterIIByStudent7Model);
        this.cbbMarkSemesterIIByStudent8.setModel(this.markSemesterIIByStudent8Model);
        this.cbbMarkSemesterIIByStudent9.setModel(this.markSemesterIIByStudent9Model);
        this.cbbMarkSemesterIIByStudent10.setModel(this.markSemesterIIByStudent10Model);

        ClassRoomBlock block = (ClassRoomBlock) this.listClassRoomBlockForMark.getSelectedValue();
        this.setListsForMark(block);
        this.setListSubjectForMark(block);
    }

    private void setListsForMark(ClassRoomBlock block) {
        this.listClassForMarkModel.removeAllElements();
        if (block != null) {
            for (int i = 0; i < this.classComboBoxModel.getSize(); i++) {
                if (this.classComboBoxModel.getElementAt(i).getClassRoomBlockID() == block.getClassRoomBlockID()) {
                    this.listClassForMarkModel.addElement(this.classComboBoxModel.getElementAt(i));
                }
            }
        }
        this.listClassForMark.setModel(this.listClassForMarkModel);
        this.listClassForMark.setSelectedIndex(0);

        Class selected = (Class) this.listClassForMark.getSelectedValue();
        this.setListStudentForMark(selected);
    }

    private void setListStudentForMark(Class selected) {
        this.listStudentForMarkModel.removeAllElements();
        if (selected != null) {
            for (int i = 0; i < this.manager.getStudentManager().size(); i++) {
                if (this.manager.getStudentManager().get(i).getClassID().equals(selected.getClassID())) {
                    this.listStudentForMarkModel.addElement(this.manager.getStudentManager().get(i));
                }
            }
        }
        this.listStudentForMark.setModel(this.listStudentForMarkModel);
        if (listStudentForMarkModel.getSize() > 0) {
            this.listStudentForMark.setSelectedIndex(0);
            this.setComboBoxForMarks((Student) this.listStudentForMark.getSelectedValue(), selected);
        }
    }

    private void setListSubjectForMark(ClassRoomBlock block) {
        this.listSubjectForMarkModel.removeAllElements();
        if (block != null) {
            for (int i = 0; i < this.manager.getSubjectManager().size(); i++) {
                if (this.manager.getSubjectManager().get(i).getClassRoomBlockID() == block.getClassRoomBlockID()) {
                    this.listSubjectForMarkModel.addElement(this.manager.getSubjectManager().get(i));
                }
            }
        }
        this.listSubjectByClassRoomBlock.setModel(listSubjectForMarkModel);
    }

    private void setVisibleComponentsForStudent(boolean value) {
        this.txtStudentNameForStudent.setEditable(value);
        this.cbbDayForStudent.setEnabled(value);
        this.cbbMonthForStudent.setEnabled(value);
        this.cbbYearForStudent.setEnabled(value);
        this.rdFemaleForStudent.setEnabled(value);
        this.rdMaleForStudent.setEnabled(value);
        this.txtFatherForStudent.setEditable(value);
        this.txtMotherForStudent.setEditable(value);
        this.txtPhoneForStudent.setEditable(value);
        this.txaAddressForStudent.setEditable(value);
        this.cbbProvinceForStudent.setEnabled(value);
        this.cbbClassForStudent.setEnabled(value);
    }

    private void setVisibleComponentsForTeacher(boolean value) {
        this.txtTeacherNameForTeacher.setEditable(value);
        this.txtPhoneForTeacher.setEditable(value);
        this.txaAddressForTeacher.setEditable(value);
        this.cbbProvinceForTeacher.setEnabled(value);
        this.cbbDayBirthdayForTeacher.setEnabled(value);
        this.cbbMonthBirthdayForTeacher.setEnabled(value);
        this.cbbYearBirthdayForTeacher.setEnabled(value);
        this.cbbDayForTeacher.setEnabled(value);
        this.cbbMonthForTeacher.setEnabled(value);
        this.cbbYearForTeacher.setEnabled(value);
        this.cbbSalaryScoreForTeacher.setEnabled(value);
        this.cbbSeniorityScoreForTeacher.setEnabled(value);
        this.cbbAllowanceForTeacher.setEnabled(value);
    }

    private void setComponents() {
        this.enabledAddProvince = true;
        this.enabledEditProvince = true;
        this.txtProvinceIDForProvince.setEditable(false);
        this.txtProvinceNameForProvince.setEditable(false);

        this.enabledAddClassRoomBlock = true;
        this.enabledEditClassRoomBlock = true;
        this.txtClassRoomBlockNameForClassRoomBlock.setEditable(false);

        this.enabledAddSemester = true;
        this.enabledEditSemester = true;
        this.txtSemesterNameForSemester.setEditable(false);

        this.enabledAddTeacher = true;
        this.enabledEditTeacher = true;

        this.enabledAddClass = true;
        this.enabledEditClass = true;
        this.txtClassIDForClass.setEditable(false);
        this.txtToYearForClass.setEditable(false);

        this.enabledAddSubject = true;
        this.enabledEditSubject = true;
        this.setVisibleComponentsForSubject(false);

        this.enabledAddStudent = true;
        this.enabledEditStudent = true;
        this.setVisibleComponentsForStudent(false);

        this.enabledAddMark = true;
        this.enabledEditMark = true;
        this.setVisibleComponentsForMark(false);

        this.enabledAddAccount = true;
        this.txtAccountIDForAccount.setEditable(false);
    }

    private void setVisibleComponentsForMark(boolean value) {
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        groupButtonGender = new javax.swing.ButtonGroup();
        groupButtonFindMark = new javax.swing.ButtonGroup();
        pnlHeader = new javax.swing.JPanel();
        lblHello = new javax.swing.JLabel();
        pnlFooter = new javax.swing.JPanel();
        lblCopyright = new javax.swing.JLabel();
        pnlCenter = new javax.swing.JPanel();
        pnlHome = new javax.swing.JPanel();
        jScrollPane2 = new javax.swing.JScrollPane();
        jTextArea1 = new javax.swing.JTextArea();
        pnlClassManager = new javax.swing.JPanel();
        pnlClassManagerLeft = new javax.swing.JPanel();
        pnlClassManagerLeftHeader = new javax.swing.JPanel();
        lblClassManager = new javax.swing.JLabel();
        pnlClassManagerLeftFooter = new javax.swing.JPanel();
        btnAddClass = new javax.swing.JButton();
        btnEditClass = new javax.swing.JButton();
        btnMoveClassForClass = new javax.swing.JButton();
        btnDeleteClass = new javax.swing.JButton();
        pnlClassManagerLeftCenter = new javax.swing.JPanel();
        txtClassIDForClass = new javax.swing.JTextField();
        lblClassIDForClass = new javax.swing.JLabel();
        cbbClassRoomBlockForClass = new javax.swing.JComboBox();
        lblClassRoomBlockForClass = new javax.swing.JLabel();
        lblClassNameForClass = new javax.swing.JLabel();
        cbbClassNameForClass = new javax.swing.JComboBox();
        cbbFromYearForClass = new javax.swing.JComboBox();
        lblFromYearForClass = new javax.swing.JLabel();
        lblToYearForClass = new javax.swing.JLabel();
        txtToYearForClass = new javax.swing.JTextField();
        cbbTeacherForClass = new javax.swing.JComboBox();
        lblTeacherForClass = new javax.swing.JLabel();
        pnlClassManagerRight = new javax.swing.JPanel();
        pnlClassManagerRightHeader = new javax.swing.JPanel();
        lblListClassManager = new javax.swing.JLabel();
        pnlClassManagerRightCenter = new javax.swing.JPanel();
        pnlClassManagerRightCenterHeader = new javax.swing.JPanel();
        lblFindByClassNameForClass = new javax.swing.JLabel();
        txtFindByClassNameForClass = new javax.swing.JTextField();
        btnFindByClassNameForClass = new javax.swing.JButton();
        pnlClassManagerRightCenterFooter = new javax.swing.JPanel();
        lblLienHe = new javax.swing.JLabel();
        pnlClassManagerRightCenterCenter = new javax.swing.JPanel();
        jsPaneClassManager = new javax.swing.JScrollPane();
        tblClassManager = new javax.swing.JTable();
        pnlSubjectManager = new javax.swing.JPanel();
        pnlSubjectManagerLeft = new javax.swing.JPanel();
        pnlSubjectManagerLeftHeader = new javax.swing.JPanel();
        lblSubjectManager = new javax.swing.JLabel();
        pnlSubjectManagerLeftFooter = new javax.swing.JPanel();
        btnAddSubject = new javax.swing.JButton();
        btnEditSubject = new javax.swing.JButton();
        btnDeleteSubject = new javax.swing.JButton();
        pnlSubjectManagerLeftCenter = new javax.swing.JPanel();
        txtSubjectNameForSubject = new javax.swing.JTextField();
        lblSubjectNameForSubject = new javax.swing.JLabel();
        lblClassRoomBlockForSubject = new javax.swing.JLabel();
        cbbClassRoomBlockForSubject = new javax.swing.JComboBox();
        cbbClassPeriodForSubject = new javax.swing.JComboBox();
        lblClassPeriodForSubject = new javax.swing.JLabel();
        lblPointTypeForSubject = new javax.swing.JLabel();
        cbbPointTypeForSubject = new javax.swing.JComboBox();
        pnlSubjectManagerRight = new javax.swing.JPanel();
        pnlSubjectManagerRightHeader = new javax.swing.JPanel();
        lblListSubjectManager = new javax.swing.JLabel();
        pnlSubjectManagerRightCenter = new javax.swing.JPanel();
        pnlSubjectManagerRightCenterHeader = new javax.swing.JPanel();
        lblFindBySubjectNameForSubject = new javax.swing.JLabel();
        txtFindBySubjectNameForSubject = new javax.swing.JTextField();
        btnFindBySubjectNameForSubject = new javax.swing.JButton();
        pnlSubjectManagerRightCenterFooter = new javax.swing.JPanel();
        lblLienHe1 = new javax.swing.JLabel();
        pnlSubjectManagerRightCenterCenter = new javax.swing.JPanel();
        jsPaneSubjectManager = new javax.swing.JScrollPane();
        tblSubjectManager = new javax.swing.JTable();
        pnlTeacherManager = new javax.swing.JPanel();
        pnlTeacherManagerLeft = new javax.swing.JPanel();
        pnlTeacherManagerLeftHeader = new javax.swing.JPanel();
        lblTeacherManager = new javax.swing.JLabel();
        pnlTeacherManagerLeftFooter = new javax.swing.JPanel();
        btnAddTeacher = new javax.swing.JButton();
        btnEditTeacher = new javax.swing.JButton();
        btnDeleteTeacher = new javax.swing.JButton();
        pnlTeacherManagerLeftCenter = new javax.swing.JPanel();
        pnlTeacherManagerLeftCenterCenter = new javax.swing.JPanel();
        txtTeacherNameForTeacher = new javax.swing.JTextField();
        lblTeacherNameForTeacher = new javax.swing.JLabel();
        lblBirthDayForTeacher = new javax.swing.JLabel();
        cbbDayBirthdayForTeacher = new javax.swing.JComboBox();
        cbbMonthBirthdayForTeacher = new javax.swing.JComboBox();
        cbbYearBirthdayForTeacher = new javax.swing.JComboBox();
        lblGenderForTeacher = new javax.swing.JLabel();
        rdFemaleForTeacher = new javax.swing.JRadioButton();
        rdMaleForTeacher = new javax.swing.JRadioButton();
        lblPhoneForTeacher = new javax.swing.JLabel();
        txtPhoneForTeacher = new javax.swing.JTextField();
        jsAddress = new javax.swing.JScrollPane();
        txaAddressForTeacher = new javax.swing.JTextArea();
        lblAddressForTeacher = new javax.swing.JLabel();
        lblProvinceForTeacher = new javax.swing.JLabel();
        cbbProvinceForTeacher = new javax.swing.JComboBox();
        pnlTeacherManagerLeftCenterFooter = new javax.swing.JPanel();
        lblDayForTeacher = new javax.swing.JLabel();
        cbbDayForTeacher = new javax.swing.JComboBox();
        cbbMonthForTeacher = new javax.swing.JComboBox();
        cbbYearForTeacher = new javax.swing.JComboBox();
        cbbSalaryScoreForTeacher = new javax.swing.JComboBox();
        lblSalaryScoreForTeacher = new javax.swing.JLabel();
        lblSeniorityScoreForTeacher = new javax.swing.JLabel();
        cbbSeniorityScoreForTeacher = new javax.swing.JComboBox();
        lblAllowanceForTeacher = new javax.swing.JLabel();
        cbbAllowanceForTeacher = new javax.swing.JComboBox();
        pnlTeacherManagerRight = new javax.swing.JPanel();
        pnlTeacherManagerRightHeader = new javax.swing.JPanel();
        lblTeacherClassManager = new javax.swing.JLabel();
        pnlTeacherManagerRightCenter = new javax.swing.JPanel();
        pnlTeacherManagerRightCenterHeader = new javax.swing.JPanel();
        lblFindByTeacherNameForTeacher = new javax.swing.JLabel();
        txtFindByTeacherNameForTeacher = new javax.swing.JTextField();
        btnFindByTeacherNameForTeacher = new javax.swing.JButton();
        pnlTeacherManagerRightCenterFooter = new javax.swing.JPanel();
        lblLienHe2 = new javax.swing.JLabel();
        pnlTeacherManagerRightCenterCenter = new javax.swing.JPanel();
        jsPaneTeacherManager = new javax.swing.JScrollPane();
        tblTeacherManager = new javax.swing.JTable();
        pnlStudentManager = new javax.swing.JPanel();
        pnlStudentManagerLeft = new javax.swing.JPanel();
        pnlStudentManagerLeftHeader = new javax.swing.JPanel();
        lblStudentManager = new javax.swing.JLabel();
        pnlStudentManagerLeftFooter = new javax.swing.JPanel();
        btnAddStudent = new javax.swing.JButton();
        btnEditStudent = new javax.swing.JButton();
        btnDeleteStudent = new javax.swing.JButton();
        pnlStudentManagerLeftCenter = new javax.swing.JPanel();
        txtStudentNameForStudent = new javax.swing.JTextField();
        lblStudentNameForStudent = new javax.swing.JLabel();
        lblBirthDayForStudent = new javax.swing.JLabel();
        cbbDayForStudent = new javax.swing.JComboBox();
        cbbYearForStudent = new javax.swing.JComboBox();
        lblGenderForStudent = new javax.swing.JLabel();
        rdFemaleForStudent = new javax.swing.JRadioButton();
        rdMaleForStudent = new javax.swing.JRadioButton();
        txtFatherForStudent = new javax.swing.JTextField();
        lblFatherForStudent = new javax.swing.JLabel();
        llbMotherForStudent = new javax.swing.JLabel();
        txtMotherForStudent = new javax.swing.JTextField();
        txtPhoneForStudent = new javax.swing.JTextField();
        lblPhoneForStudent = new javax.swing.JLabel();
        lblAddressForStudent = new javax.swing.JLabel();
        jsAddressForStudent = new javax.swing.JScrollPane();
        txaAddressForStudent = new javax.swing.JTextArea();
        cbbProvinceForStudent = new javax.swing.JComboBox();
        lblProvinceForStudent = new javax.swing.JLabel();
        cbbClassForStudent = new javax.swing.JComboBox();
        lblClassForStudent = new javax.swing.JLabel();
        cbbMonthForStudent = new javax.swing.JComboBox();
        pnlStudentManagerRight = new javax.swing.JPanel();
        pnlStudentManagerRightHeader = new javax.swing.JPanel();
        lblListStudentManager = new javax.swing.JLabel();
        pnlStudentManagerRightCenter = new javax.swing.JPanel();
        pnlStudentManagerRightCenterHeader = new javax.swing.JPanel();
        lblFindByStudentIDNameForStudent = new javax.swing.JLabel();
        txtFindByStudentIDForStudent = new javax.swing.JTextField();
        btnFindByStudentIDForStudent = new javax.swing.JButton();
        pnlStudentManagerRightCenterFooter = new javax.swing.JPanel();
        lblLienHe3 = new javax.swing.JLabel();
        pnlStudentManagerRightCenterCenter = new javax.swing.JPanel();
        jsPaneStudentManager = new javax.swing.JScrollPane();
        tblStudentManager = new javax.swing.JTable();
        pnlMarkManager = new javax.swing.JPanel();
        pnlMarkManagerLeft = new javax.swing.JPanel();
        pnlMarkManagerLeftHeader = new javax.swing.JPanel();
        lblMarkManager = new javax.swing.JLabel();
        pnlMarkManagerLeftFooter = new javax.swing.JPanel();
        btnAddMark = new javax.swing.JButton();
        btnEditMark = new javax.swing.JButton();
        btnDeleteMark = new javax.swing.JButton();
        pnlMarkManagerLeftCenter = new javax.swing.JPanel();
        pnlShowMarkByStudent = new javax.swing.JPanel();
        jLabel2 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        lblSubjectName1 = new javax.swing.JLabel();
        lblSubjectName2 = new javax.swing.JLabel();
        lblSubjectName3 = new javax.swing.JLabel();
        lblSubjectName4 = new javax.swing.JLabel();
        lblSubjectName5 = new javax.swing.JLabel();
        lblSubjectName6 = new javax.swing.JLabel();
        lblSubjectName7 = new javax.swing.JLabel();
        lblSubjectName8 = new javax.swing.JLabel();
        cbbMarkSemesterIOfSubject1 = new javax.swing.JComboBox();
        cbbMarkSemesterIIOfSubject1 = new javax.swing.JComboBox();
        cbbMarkSemesterIOfSubject2 = new javax.swing.JComboBox();
        cbbMarkSemesterIIOfSubject2 = new javax.swing.JComboBox();
        cbbMarkSemesterIOfSubject3 = new javax.swing.JComboBox();
        cbbMarkSemesterIIOfSubject3 = new javax.swing.JComboBox();
        cbbMarkSemesterIOfSubject4 = new javax.swing.JComboBox();
        cbbMarkSemesterIIOfSubject4 = new javax.swing.JComboBox();
        cbbMarkSemesterIOfSubject5 = new javax.swing.JComboBox();
        cbbMarkSemesterIIOfSubject5 = new javax.swing.JComboBox();
        cbbMarkSemesterIOfSubject6 = new javax.swing.JComboBox();
        cbbMarkSemesterIIOfSubject6 = new javax.swing.JComboBox();
        cbbMarkSemesterIOfSubject7 = new javax.swing.JComboBox();
        cbbMarkSemesterIIOfSubject7 = new javax.swing.JComboBox();
        cbbMarkSemesterIOfSubject9 = new javax.swing.JComboBox();
        cbbMarkSemesterIIOfSubject9 = new javax.swing.JComboBox();
        lblSubjectName9 = new javax.swing.JLabel();
        cbbMarkSemesterIOfSubject8 = new javax.swing.JComboBox();
        cbbMarkSemesterIIOfSubject8 = new javax.swing.JComboBox();
        lblSubjectName10 = new javax.swing.JLabel();
        cbbMarkSemesterIOfSubject10 = new javax.swing.JComboBox();
        cbbMarkSemesterIIOfSubject10 = new javax.swing.JComboBox();
        cbbMarkSemesterIIOfSubject11 = new javax.swing.JComboBox();
        lblSubjectName11 = new javax.swing.JLabel();
        cbbMarkSemesterIOfSubject11 = new javax.swing.JComboBox();
        lblSubjectName12 = new javax.swing.JLabel();
        cbbMarkSemesterIOfSubject12 = new javax.swing.JComboBox();
        cbbMarkSemesterIIOfSubject12 = new javax.swing.JComboBox();
        pnlShowMarkBySubject = new javax.swing.JPanel();
        lblStudentID1 = new javax.swing.JTextField();
        lblStudentIDByMark = new javax.swing.JLabel();
        lblStudentNameByMark = new javax.swing.JLabel();
        lblStudentName1 = new javax.swing.JTextField();
        lblSemesterI = new javax.swing.JLabel();
        cbbMarkSemesterIByStudent1 = new javax.swing.JComboBox();
        lblSemesterII = new javax.swing.JLabel();
        cbbMarkSemesterIIByStudent1 = new javax.swing.JComboBox();
        lblStudentID2 = new javax.swing.JTextField();
        lblStudentName2 = new javax.swing.JTextField();
        cbbMarkSemesterIByStudent2 = new javax.swing.JComboBox();
        cbbMarkSemesterIIByStudent2 = new javax.swing.JComboBox();
        lblStudentName3 = new javax.swing.JTextField();
        cbbMarkSemesterIByStudent3 = new javax.swing.JComboBox();
        lblStudentID3 = new javax.swing.JTextField();
        cbbMarkSemesterIIByStudent3 = new javax.swing.JComboBox();
        cbbMarkSemesterIByStudent5 = new javax.swing.JComboBox();
        lblStudentName5 = new javax.swing.JTextField();
        cbbMarkSemesterIIByStudent5 = new javax.swing.JComboBox();
        lblStudentID5 = new javax.swing.JTextField();
        cbbMarkSemesterIByStudent4 = new javax.swing.JComboBox();
        lblStudentName4 = new javax.swing.JTextField();
        cbbMarkSemesterIIByStudent4 = new javax.swing.JComboBox();
        lblStudentID4 = new javax.swing.JTextField();
        cbbMarkSemesterIIByStudent6 = new javax.swing.JComboBox();
        cbbMarkSemesterIByStudent6 = new javax.swing.JComboBox();
        lblStudentName6 = new javax.swing.JTextField();
        lblStudentID6 = new javax.swing.JTextField();
        lblStudentName7 = new javax.swing.JTextField();
        cbbMarkSemesterIByStudent7 = new javax.swing.JComboBox();
        cbbMarkSemesterIIByStudent7 = new javax.swing.JComboBox();
        lblStudentID7 = new javax.swing.JTextField();
        lblStudentName8 = new javax.swing.JTextField();
        cbbMarkSemesterIByStudent8 = new javax.swing.JComboBox();
        lblStudentID8 = new javax.swing.JTextField();
        cbbMarkSemesterIIByStudent8 = new javax.swing.JComboBox();
        cbbMarkSemesterIByStudent9 = new javax.swing.JComboBox();
        cbbMarkSemesterIIByStudent9 = new javax.swing.JComboBox();
        lblStudentID9 = new javax.swing.JTextField();
        lblStudentName9 = new javax.swing.JTextField();
        cbbMarkSemesterIByStudent10 = new javax.swing.JComboBox();
        lblStudentName10 = new javax.swing.JTextField();
        lblStudentID10 = new javax.swing.JTextField();
        cbbMarkSemesterIIByStudent10 = new javax.swing.JComboBox();
        btnEnd = new javax.swing.JButton();
        btnFirst = new javax.swing.JButton();
        btnNext = new javax.swing.JButton();
        btnPrevious = new javax.swing.JButton();
        pnlMarkManagerRight = new javax.swing.JPanel();
        pnlMarkManagerRightHeader = new javax.swing.JPanel();
        lblListMarkManager = new javax.swing.JLabel();
        pnlMarkManagerRightCenter = new javax.swing.JPanel();
        pnlMarkManagerRightCenterHeader = new javax.swing.JPanel();
        lblFindByStudentIDNameForMark = new javax.swing.JLabel();
        rdByStudent = new javax.swing.JRadioButton();
        rdBySubject = new javax.swing.JRadioButton();
        pnlMarkManagerRightCenterFooter = new javax.swing.JPanel();
        lblLienHe4 = new javax.swing.JLabel();
        pnlMarkManagerRightCenterCenter = new javax.swing.JPanel();
        pnlHeaderList = new javax.swing.JPanel();
        jPanel3 = new javax.swing.JPanel();
        jScrollPane4 = new javax.swing.JScrollPane();
        listClassRoomBlockForMark = new javax.swing.JList();
        jPanel1 = new javax.swing.JPanel();
        jScrollPane6 = new javax.swing.JScrollPane();
        listSubjectByClassRoomBlock = new javax.swing.JList();
        jPanel4 = new javax.swing.JPanel();
        jScrollPane3 = new javax.swing.JScrollPane();
        listClassForMark = new javax.swing.JList();
        jPanel2 = new javax.swing.JPanel();
        jScrollPane5 = new javax.swing.JScrollPane();
        listStudentForMark = new javax.swing.JList();
        pnlClassRoomBlockManager = new javax.swing.JPanel();
        pnlClassRoomBlockManagerLeft = new javax.swing.JPanel();
        pnlClassRoomBlockManagerLeftHeader = new javax.swing.JPanel();
        lblClassRoomBlockManager = new javax.swing.JLabel();
        pnlClassRoomBlockManagerLeftFooter = new javax.swing.JPanel();
        btnAddClassRoomBlock = new javax.swing.JButton();
        btnEditClassRoomBlock = new javax.swing.JButton();
        btnDeleteClassRoomBlock = new javax.swing.JButton();
        pnlClassRoomBlockManagerLeftCenter = new javax.swing.JPanel();
        txtClassRoomBlockNameForClassRoomBlock = new javax.swing.JTextField();
        lblClassRoomBlockNameForClassRoomBlock = new javax.swing.JLabel();
        pnlClassRoomBlockManagerRight = new javax.swing.JPanel();
        pnlClassRoomBlockManagerRightHeader = new javax.swing.JPanel();
        lblListClassRoomBlockManager = new javax.swing.JLabel();
        pnlClassRoomBlockManagerRightCenter = new javax.swing.JPanel();
        pnlClassRoomBlockManagerRightCenterHeader = new javax.swing.JPanel();
        lblFindByNameClassRoomBlock = new javax.swing.JLabel();
        txtFindByNameClassRoomBlock = new javax.swing.JTextField();
        btnFindByNameClassRoomBlock = new javax.swing.JButton();
        pnlClassRoomBlockManagerRightCenterFooter = new javax.swing.JPanel();
        lblLienHe5 = new javax.swing.JLabel();
        pnlClassRoomBlockManagerRightCenterCenter = new javax.swing.JPanel();
        jsPaneClassRoomBlockManager = new javax.swing.JScrollPane();
        listClassRoomBlockManager = new javax.swing.JList();
        pnlProvinceManager = new javax.swing.JPanel();
        pnlProvinceManagerLeft = new javax.swing.JPanel();
        pnlProvinceManagerLeftHeader = new javax.swing.JPanel();
        lblProvinceManager = new javax.swing.JLabel();
        pnlProvinceManagerLeftFooter = new javax.swing.JPanel();
        btnAddProvince = new javax.swing.JButton();
        btnEditProvince = new javax.swing.JButton();
        btnDeleteProvince = new javax.swing.JButton();
        pnlProvinceManagerLeftCenter = new javax.swing.JPanel();
        txtProvinceIDForProvince = new javax.swing.JTextField();
        lblProvinceIDForProvince = new javax.swing.JLabel();
        lblProvinceNameForProvince = new javax.swing.JLabel();
        txtProvinceNameForProvince = new javax.swing.JTextField();
        pnlProvinceManagerRight = new javax.swing.JPanel();
        pnlProvinceManagerRightHeader = new javax.swing.JPanel();
        lblListProvinceManager = new javax.swing.JLabel();
        pnlProvinceManagerRightCenter = new javax.swing.JPanel();
        pnlProvinceManagerRightCenterHeader = new javax.swing.JPanel();
        lblFindByNameProvince = new javax.swing.JLabel();
        txtFindByNameProvince = new javax.swing.JTextField();
        btnFindByNameProvince = new javax.swing.JButton();
        pnProvinceManagerRightCenterFooter = new javax.swing.JPanel();
        lblLienHe6 = new javax.swing.JLabel();
        pnlProvinceManagerRightCenterCenter = new javax.swing.JPanel();
        jsPaneProvinceManager = new javax.swing.JScrollPane();
        listProvinceManager = new javax.swing.JList();
        pnlSemesterManager = new javax.swing.JPanel();
        pnlSemesterManagerLeft = new javax.swing.JPanel();
        pnlSemesterManagerLeftHeader = new javax.swing.JPanel();
        lblSemesterManager = new javax.swing.JLabel();
        pnlSemesterManagerLeftFooter = new javax.swing.JPanel();
        btnAddSemester = new javax.swing.JButton();
        btnEditSemester = new javax.swing.JButton();
        btnDeleteSemester = new javax.swing.JButton();
        pnlSemesterManagerLeftCenter = new javax.swing.JPanel();
        txtSemesterNameForSemester = new javax.swing.JTextField();
        lblSemesterNameForSemester = new javax.swing.JLabel();
        pnlSemesterManagerRight = new javax.swing.JPanel();
        pnlSemesterManagerRightHeader = new javax.swing.JPanel();
        lblListSemesterManager = new javax.swing.JLabel();
        pnlSemesterManagerRightCenter = new javax.swing.JPanel();
        pnlSemesterManagerRightCenterHeader = new javax.swing.JPanel();
        lblFindByNameSemester = new javax.swing.JLabel();
        txtFindByNameSemester = new javax.swing.JTextField();
        btnFindByNameSemester = new javax.swing.JButton();
        pnlSemesterManagerRightCenterFooter = new javax.swing.JPanel();
        lblLienHe7 = new javax.swing.JLabel();
        pnlSemesterManagerRightCenterCenter = new javax.swing.JPanel();
        jsPaneSemesterManager = new javax.swing.JScrollPane();
        listSemesterManager = new javax.swing.JList();
        pnlStatisticByStudent = new javax.swing.JPanel();
        pnlHeaderByStudent = new javax.swing.JPanel();
        lblStatiticsByStudent = new javax.swing.JLabel();
        cbbClassByStudent = new javax.swing.JComboBox();
        cbbStudentByStudent = new javax.swing.JComboBox();
        cbbCriteriaByStudent = new javax.swing.JComboBox();
        btnFindResultOfStudentByStudent = new javax.swing.JButton();
        pnlFooterByStudent = new javax.swing.JPanel();
        btnToPrintByStudent = new javax.swing.JButton();
        pnlCenterByStudent = new javax.swing.JPanel();
        pnlCurrentYearByStudent = new javax.swing.JPanel();
        pnlCurrentYearByStudentHeader = new javax.swing.JPanel();
        lblClassNameByCurrentYear = new javax.swing.JLabel();
        lblResultForClassNameCurrentYear = new javax.swing.JLabel();
        lblResultForStudentIDCurrentYear = new javax.swing.JLabel();
        lblStudentIDByCurrentYear = new javax.swing.JLabel();
        lblResultForStudentNameCurrentYear = new javax.swing.JLabel();
        lblStudentNameByCurrentYear = new javax.swing.JLabel();
        lblStudentGenderByCurrentYear = new javax.swing.JLabel();
        lblResultForGenderCurrentYear = new javax.swing.JLabel();
        lblResultForBirthdayCurrentYear = new javax.swing.JLabel();
        lblStudentBirthdayByCurrentYear = new javax.swing.JLabel();
        pnlCurrentYearByStudentCenter = new javax.swing.JPanel();
        jsPaneResultCurrentYearOfStudent = new javax.swing.JScrollPane();
        tblResultCurrentYearOfStudent = new javax.swing.JTable();
        pnlCurrentYearByStudentFooter = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();
        lblResultOfConduct = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        lblResultOfAcademic = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jScrollPane1 = new javax.swing.JScrollPane();
        txaCommentOfTeacher = new javax.swing.JTextArea();
        pnlAllYearByStudent = new javax.swing.JPanel();
        pnlCenterAllYearByStudent = new javax.swing.JPanel();
        jsResultOfStudentAllYear = new javax.swing.JScrollPane();
        tblResultOfStudentAllYear = new javax.swing.JTable();
        pnlHeaderOfStudentAllYear = new javax.swing.JPanel();
        lblClassNameByAllYear1 = new javax.swing.JLabel();
        lblResultForClassName1 = new javax.swing.JLabel();
        lblResultForStudentID1 = new javax.swing.JLabel();
        lblStudentIDByAllYear1 = new javax.swing.JLabel();
        lblResultForStudentName1 = new javax.swing.JLabel();
        lblStudentNameByAllYear1 = new javax.swing.JLabel();
        lblStudentGenderByAllYear1 = new javax.swing.JLabel();
        lblResultForGender1 = new javax.swing.JLabel();
        lblResultForBirthday1 = new javax.swing.JLabel();
        lblStudentBirthdayByAllYear1 = new javax.swing.JLabel();
        pnlStatisticByClass = new javax.swing.JPanel();
        pnlHeaderStatisticByClass = new javax.swing.JPanel();
        lblStatiticsByClass = new javax.swing.JLabel();
        cbbClassNameByClass = new javax.swing.JComboBox();
        btnFindResultOfClass = new javax.swing.JButton();
        pnlFooterStatisticByClass = new javax.swing.JPanel();
        btnToPrintByClass = new javax.swing.JButton();
        pnlCenterStatisticByClass = new javax.swing.JPanel();
        pnlCenterStatisticByClassHeader = new javax.swing.JPanel();
        lblClassNameByClass = new javax.swing.JLabel();
        lblTeacherNameByClass = new javax.swing.JLabel();
        lblClassNameStatisticByClass = new javax.swing.JLabel();
        lblTeacherNameStatisticByClass = new javax.swing.JLabel();
        pnlCenterStatisticByClassCenter = new javax.swing.JPanel();
        jsPaneResultClassByClass = new javax.swing.JScrollPane();
        tblResultClassByClass = new javax.swing.JTable();
        pnlLogin = new javax.swing.JPanel();
        lblUserName = new javax.swing.JLabel();
        txtUserName = new javax.swing.JTextField();
        lblPassword = new javax.swing.JLabel();
        lblLogin = new javax.swing.JLabel();
        pfPassword = new javax.swing.JPasswordField();
        btnLogin = new javax.swing.JButton();
        pnlChangeAccount = new javax.swing.JPanel();
        lblChange = new javax.swing.JLabel();
        lblChangeUserName = new javax.swing.JLabel();
        txtChangeUserName = new javax.swing.JTextField();
        pfOldPassword = new javax.swing.JPasswordField();
        lblOldPassword = new javax.swing.JLabel();
        btnChange = new javax.swing.JButton();
        lblNewPassword = new javax.swing.JLabel();
        pfNewPassword = new javax.swing.JPasswordField();
        pnlAccountManager = new javax.swing.JPanel();
        pnlAccountManagerLeft = new javax.swing.JPanel();
        pnlAccountManagerLeftHeader = new javax.swing.JPanel();
        lblAccountManager = new javax.swing.JLabel();
        pnlAccountManagerLeftFooter = new javax.swing.JPanel();
        btnAddAccount = new javax.swing.JButton();
        btnResetAccount = new javax.swing.JButton();
        btnDeleteAccount = new javax.swing.JButton();
        pnlAccountManagerLeftCenter = new javax.swing.JPanel();
        txtAccountIDForAccount = new javax.swing.JTextField();
        lblAccountIDForAccount = new javax.swing.JLabel();
        pnlAccountManagerRight = new javax.swing.JPanel();
        pnlAccountManagerRightHeader = new javax.swing.JPanel();
        lblListAccountManager = new javax.swing.JLabel();
        pnlAccountManagerRightCenter = new javax.swing.JPanel();
        pnlAccountManagerRightCenterHeader = new javax.swing.JPanel();
        lblFindByAccountID = new javax.swing.JLabel();
        txtFindByAccountID = new javax.swing.JTextField();
        btnFindByAccountID = new javax.swing.JButton();
        pnAccountManagerRightCenterFooter = new javax.swing.JPanel();
        lblLienHe8 = new javax.swing.JLabel();
        pnlAccountManagerRightCenterCenter = new javax.swing.JPanel();
        jsPaneAccountManager = new javax.swing.JScrollPane();
        listAccountManager = new javax.swing.JList();
        MenuBar = new javax.swing.JMenuBar();
        mnuFile = new javax.swing.JMenu();
        itemLogin = new javax.swing.JMenuItem();
        itemLogout = new javax.swing.JMenuItem();
        itemChangeAccount = new javax.swing.JMenuItem();
        itemClose = new javax.swing.JMenuItem();
        mnuManager = new javax.swing.JMenu();
        itemStudentManager = new javax.swing.JMenuItem();
        itemSubjectManager = new javax.swing.JMenuItem();
        itemClassManager = new javax.swing.JMenuItem();
        itemTeacherManager = new javax.swing.JMenuItem();
        itemMarkManager = new javax.swing.JMenuItem();
        separatorOne = new javax.swing.JPopupMenu.Separator();
        itemAccountManager = new javax.swing.JMenuItem();
        itemClassRoomBlockManager = new javax.swing.JMenuItem();
        itemProvinceManager = new javax.swing.JMenuItem();
        itemSemesterManager = new javax.swing.JMenuItem();
        mnuStatistic = new javax.swing.JMenu();
        itemResultForClass = new javax.swing.JMenuItem();
        itemResultForStudent = new javax.swing.JMenuItem();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("Quan Ly Tieu Hoc");

        pnlHeader.setBackground(new java.awt.Color(0, 102, 102));
        pnlHeader.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        pnlHeader.setPreferredSize(new java.awt.Dimension(1100, 30));

        lblHello.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        lblHello.setForeground(new java.awt.Color(51, 255, 153));
        lblHello.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        lblHello.setText("Xin chào: KHÁCH");
        pnlHeader.add(lblHello);

        getContentPane().add(pnlHeader, java.awt.BorderLayout.PAGE_START);

        pnlFooter.setBackground(new java.awt.Color(153, 153, 153));
        pnlFooter.setPreferredSize(new java.awt.Dimension(1000, 30));

        lblCopyright.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        lblCopyright.setForeground(new java.awt.Color(0, 102, 204));
        lblCopyright.setText("Copyright: Đỗ Đức Nội - 02/2012");
        pnlFooter.add(lblCopyright);

        getContentPane().add(pnlFooter, java.awt.BorderLayout.PAGE_END);

        pnlCenter.setPreferredSize(new java.awt.Dimension(1000, 650));
        pnlCenter.setLayout(new java.awt.CardLayout());

        pnlHome.setBackground(new java.awt.Color(204, 204, 255));
        pnlHome.setPreferredSize(new java.awt.Dimension(900, 550));

        jTextArea1.setBackground(new java.awt.Color(204, 204, 255));
        jTextArea1.setColumns(20);
        jTextArea1.setEditable(false);
        jTextArea1.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
        jTextArea1.setRows(5);
        jTextArea1.setText("SỞ GIÁO DỤC VÀ ĐÀO TẠO HÀ NỘI\nPHÒNG GIÁO DỤC VÀ ĐÀO TẠO HUYỆN MÊ LINH\nTÁC GIẢ: PHẠM ĐỨC HIẾU\nCHỨC VỤ : HIỆU TRƯỞNG\nĐƠN VỊ: TRƯỜNG TIỂU HỌC VĂN KHÊ C\n");
        jTextArea1.setBorder(null);
        jScrollPane2.setViewportView(jTextArea1);

        javax.swing.GroupLayout pnlHomeLayout = new javax.swing.GroupLayout(pnlHome);
        pnlHome.setLayout(pnlHomeLayout);
        pnlHomeLayout.setHorizontalGroup(
            pnlHomeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlHomeLayout.createSequentialGroup()
                .addContainerGap(636, Short.MAX_VALUE)
                .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 454, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );
        pnlHomeLayout.setVerticalGroup(
            pnlHomeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlHomeLayout.createSequentialGroup()
                .addContainerGap(487, Short.MAX_VALUE)
                .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 142, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );

        pnlCenter.add(pnlHome, "card7");

        pnlClassManager.setPreferredSize(new java.awt.Dimension(1000, 650));
        pnlClassManager.setLayout(new java.awt.BorderLayout());

        pnlClassManagerLeft.setMinimumSize(new java.awt.Dimension(500, 650));
        pnlClassManagerLeft.setPreferredSize(new java.awt.Dimension(500, 650));
        pnlClassManagerLeft.setLayout(new java.awt.BorderLayout());

        pnlClassManagerLeftHeader.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
        pnlClassManagerLeftHeader.setMinimumSize(new java.awt.Dimension(500, 50));
        pnlClassManagerLeftHeader.setPreferredSize(new java.awt.Dimension(500, 50));

        lblClassManager.setFont(new java.awt.Font("Tahoma", 0, 18));
        lblClassManager.setText("THÔNG TIN VỀ LỚP");
        pnlClassManagerLeftHeader.add(lblClassManager);

        pnlClassManagerLeft.add(pnlClassManagerLeftHeader, java.awt.BorderLayout.PAGE_START);

        pnlClassManagerLeftFooter.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
        pnlClassManagerLeftFooter.setMinimumSize(new java.awt.Dimension(500, 50));
        pnlClassManagerLeftFooter.setPreferredSize(new java.awt.Dimension(500, 60));

        btnAddClass.setFont(new java.awt.Font("Tahoma", 1, 12));
        btnAddClass.setText("Cho phép THÊM");
        btnAddClass.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnAddClassActionPerformed(evt);
            }
        });
        pnlClassManagerLeftFooter.add(btnAddClass);

        btnEditClass.setFont(new java.awt.Font("Tahoma", 1, 12));
        btnEditClass.setText("Cho phép SỬA");
        btnEditClass.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnEditClassActionPerformed(evt);
            }
        });
        pnlClassManagerLeftFooter.add(btnEditClass);

        btnMoveClassForClass.setFont(new java.awt.Font("Tahoma", 1, 12));
        btnMoveClassForClass.setText("Lên Lớp");
        btnMoveClassForClass.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnMoveClassForClassActionPerformed(evt);
            }
        });
        pnlClassManagerLeftFooter.add(btnMoveClassForClass);

        btnDeleteClass.setFont(new java.awt.Font("Tahoma", 1, 12));
        btnDeleteClass.setText("XÓA");
        btnDeleteClass.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnDeleteClassActionPerformed(evt);
            }
        });
        pnlClassManagerLeftFooter.add(btnDeleteClass);

        pnlClassManagerLeft.add(pnlClassManagerLeftFooter, java.awt.BorderLayout.PAGE_END);

        pnlClassManagerLeftCenter.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
        pnlClassManagerLeftCenter.setPreferredSize(new java.awt.Dimension(500, 530));

        lblClassIDForClass.setFont(new java.awt.Font("Tahoma", 1, 11));
        lblClassIDForClass.setText("Mã Lớp:");

        cbbClassRoomBlockForClass.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
        cbbClassRoomBlockForClass.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                cbbClassRoomBlockForClassItemStateChanged(evt);
            }
        });

        lblClassRoomBlockForClass.setFont(new java.awt.Font("Tahoma", 1, 11));
        lblClassRoomBlockForClass.setText("Khối:");

        lblClassNameForClass.setFont(new java.awt.Font("Tahoma", 1, 11));
        lblClassNameForClass.setText("Tên Lớp:");

        cbbClassNameForClass.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "T", "U", "V" }));
        cbbClassNameForClass.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                cbbClassNameForClassItemStateChanged(evt);
            }
        });

        cbbFromYearForClass.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
        cbbFromYearForClass.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                cbbFromYearForClassItemStateChanged(evt);
            }
        });

        lblFromYearForClass.setFont(new java.awt.Font("Tahoma", 1, 11));
        lblFromYearForClass.setText("Từ Năm:");

        lblToYearForClass.setFont(new java.awt.Font("Tahoma", 1, 11));
        lblToYearForClass.setText("Đến Năm:");

        cbbTeacherForClass.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
        cbbTeacherForClass.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                cbbTeacherForClassItemStateChanged(evt);
            }
        });

        lblTeacherForClass.setFont(new java.awt.Font("Tahoma", 1, 11));
        lblTeacherForClass.setText("Giáo Viên:");

        javax.swing.GroupLayout pnlClassManagerLeftCenterLayout = new javax.swing.GroupLayout(pnlClassManagerLeftCenter);
        pnlClassManagerLeftCenter.setLayout(pnlClassManagerLeftCenterLayout);
        pnlClassManagerLeftCenterLayout.setHorizontalGroup(
            pnlClassManagerLeftCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlClassManagerLeftCenterLayout.createSequentialGroup()
                .addGap(46, 46, 46)
                .addGroup(pnlClassManagerLeftCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblClassIDForClass)
                    .addComponent(lblClassRoomBlockForClass)
                    .addComponent(lblClassNameForClass)
                    .addComponent(lblFromYearForClass)
                    .addComponent(lblToYearForClass)
                    .addComponent(lblTeacherForClass))
                .addGap(56, 56, 56)
                .addGroup(pnlClassManagerLeftCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(cbbTeacherForClass, 0, 206, Short.MAX_VALUE)
                    .addComponent(txtClassIDForClass, javax.swing.GroupLayout.DEFAULT_SIZE, 206, Short.MAX_VALUE)
                    .addComponent(txtToYearForClass, javax.swing.GroupLayout.DEFAULT_SIZE, 206, Short.MAX_VALUE)
                    .addComponent(cbbFromYearForClass, 0, 206, Short.MAX_VALUE)
                    .addComponent(cbbClassNameForClass, 0, 206, Short.MAX_VALUE)
                    .addComponent(cbbClassRoomBlockForClass, 0, 206, Short.MAX_VALUE))
                .addGap(129, 129, 129))
        );
        pnlClassManagerLeftCenterLayout.setVerticalGroup(
            pnlClassManagerLeftCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlClassManagerLeftCenterLayout.createSequentialGroup()
                .addGap(52, 52, 52)
                .addGroup(pnlClassManagerLeftCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(txtClassIDForClass, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblClassIDForClass))
                .addGap(31, 31, 31)
                .addGroup(pnlClassManagerLeftCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(lblClassRoomBlockForClass)
                    .addComponent(cbbClassRoomBlockForClass, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(30, 30, 30)
                .addGroup(pnlClassManagerLeftCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(lblClassNameForClass)
                    .addComponent(cbbClassNameForClass, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(33, 33, 33)
                .addGroup(pnlClassManagerLeftCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(lblFromYearForClass)
                    .addComponent(cbbFromYearForClass, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(31, 31, 31)
                .addGroup(pnlClassManagerLeftCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(txtToYearForClass, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblToYearForClass))
                .addGap(28, 28, 28)
                .addGroup(pnlClassManagerLeftCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(lblTeacherForClass)
                    .addComponent(cbbTeacherForClass, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(197, Short.MAX_VALUE))
        );

        pnlClassManagerLeft.add(pnlClassManagerLeftCenter, java.awt.BorderLayout.CENTER);

        pnlClassManager.add(pnlClassManagerLeft, java.awt.BorderLayout.LINE_START);

        pnlClassManagerRight.setMinimumSize(new java.awt.Dimension(500, 650));
        pnlClassManagerRight.setPreferredSize(new java.awt.Dimension(500, 650));
        pnlClassManagerRight.setLayout(new java.awt.BorderLayout());

        pnlClassManagerRightHeader.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
        pnlClassManagerRightHeader.setPreferredSize(new java.awt.Dimension(500, 50));

        lblListClassManager.setFont(new java.awt.Font("Tahoma", 1, 16));
        lblListClassManager.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        lblListClassManager.setText("Danh Sách Lớp Học");
        lblListClassManager.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);
        lblListClassManager.setPreferredSize(new java.awt.Dimension(400, 27));

        javax.swing.GroupLayout pnlClassManagerRightHeaderLayout = new javax.swing.GroupLayout(pnlClassManagerRightHeader);
        pnlClassManagerRightHeader.setLayout(pnlClassManagerRightHeaderLayout);
        pnlClassManagerRightHeaderLayout.setHorizontalGroup(
            pnlClassManagerRightHeaderLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 592, Short.MAX_VALUE)
            .addGroup(pnlClassManagerRightHeaderLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(pnlClassManagerRightHeaderLayout.createSequentialGroup()
                    .addGap(0, 96, Short.MAX_VALUE)
                    .addComponent(lblListClassManager, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 96, Short.MAX_VALUE)))
        );
        pnlClassManagerRightHeaderLayout.setVerticalGroup(
            pnlClassManagerRightHeaderLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 42, Short.MAX_VALUE)
            .addGroup(pnlClassManagerRightHeaderLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(pnlClassManagerRightHeaderLayout.createSequentialGroup()
                    .addGap(0, 7, Short.MAX_VALUE)
                    .addComponent(lblListClassManager, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 8, Short.MAX_VALUE)))
        );

        pnlClassManagerRight.add(pnlClassManagerRightHeader, java.awt.BorderLayout.PAGE_START);

        pnlClassManagerRightCenter.setPreferredSize(new java.awt.Dimension(500, 610));
        pnlClassManagerRightCenter.setLayout(new java.awt.BorderLayout());

        pnlClassManagerRightCenterHeader.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
        pnlClassManagerRightCenterHeader.setPreferredSize(new java.awt.Dimension(500, 50));

        lblFindByClassNameForClass.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblFindByClassNameForClass.setText("Tìm kiếm theo Tên Lớp: ");
        lblFindByClassNameForClass.setPreferredSize(new java.awt.Dimension(150, 27));
        pnlClassManagerRightCenterHeader.add(lblFindByClassNameForClass);

        txtFindByClassNameForClass.setFont(new java.awt.Font("Tahoma", 0, 12));
        txtFindByClassNameForClass.setMinimumSize(new java.awt.Dimension(120, 23));
        txtFindByClassNameForClass.setPreferredSize(new java.awt.Dimension(120, 23));
        pnlClassManagerRightCenterHeader.add(txtFindByClassNameForClass);

        btnFindByClassNameForClass.setFont(new java.awt.Font("Tahoma", 0, 12));
        btnFindByClassNameForClass.setText("Tìm Kiếm");
        btnFindByClassNameForClass.setPreferredSize(new java.awt.Dimension(100, 27));
        btnFindByClassNameForClass.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnFindByClassNameForClassActionPerformed(evt);
            }
        });
        pnlClassManagerRightCenterHeader.add(btnFindByClassNameForClass);

        pnlClassManagerRightCenter.add(pnlClassManagerRightCenterHeader, java.awt.BorderLayout.PAGE_START);

        pnlClassManagerRightCenterFooter.setBackground(new java.awt.Color(255, 255, 255));
        pnlClassManagerRightCenterFooter.setPreferredSize(new java.awt.Dimension(500, 100));
        pnlClassManagerRightCenterFooter.setLayout(new java.awt.BorderLayout());

        lblLienHe.setBackground(new java.awt.Color(255, 255, 255));
        lblLienHe.setFont(new java.awt.Font("Tahoma", 1, 14));
        lblLienHe.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        lblLienHe.setText("Liên Hệ: Nguyễn Văn Tính");
        pnlClassManagerRightCenterFooter.add(lblLienHe, java.awt.BorderLayout.CENTER);

        pnlClassManagerRightCenter.add(pnlClassManagerRightCenterFooter, java.awt.BorderLayout.PAGE_END);

        pnlClassManagerRightCenterCenter.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
        pnlClassManagerRightCenterCenter.setPreferredSize(new java.awt.Dimension(500, 400));
        pnlClassManagerRightCenterCenter.setLayout(new java.awt.BorderLayout());

        tblClassManager.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Title 1", "Title 2", "Title 3", "Title 4"
            }
        ));
        tblClassManager.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                tblClassManagerMouseClicked(evt);
            }
        });
        jsPaneClassManager.setViewportView(tblClassManager);

        pnlClassManagerRightCenterCenter.add(jsPaneClassManager, java.awt.BorderLayout.CENTER);

        pnlClassManagerRightCenter.add(pnlClassManagerRightCenterCenter, java.awt.BorderLayout.CENTER);

        pnlClassManagerRight.add(pnlClassManagerRightCenter, java.awt.BorderLayout.CENTER);

        pnlClassManager.add(pnlClassManagerRight, java.awt.BorderLayout.CENTER);

        pnlCenter.add(pnlClassManager, "card2");

        pnlSubjectManager.setPreferredSize(new java.awt.Dimension(900, 550));
        pnlSubjectManager.setLayout(new java.awt.BorderLayout());

        pnlSubjectManagerLeft.setMinimumSize(new java.awt.Dimension(500, 650));
        pnlSubjectManagerLeft.setPreferredSize(new java.awt.Dimension(500, 650));
        pnlSubjectManagerLeft.setLayout(new java.awt.BorderLayout());

        pnlSubjectManagerLeftHeader.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
        pnlSubjectManagerLeftHeader.setMinimumSize(new java.awt.Dimension(500, 50));
        pnlSubjectManagerLeftHeader.setPreferredSize(new java.awt.Dimension(500, 50));

        lblSubjectManager.setFont(new java.awt.Font("Tahoma", 0, 18));
        lblSubjectManager.setText("THÔNG TIN VỀ MÔN HỌC");
        pnlSubjectManagerLeftHeader.add(lblSubjectManager);

        pnlSubjectManagerLeft.add(pnlSubjectManagerLeftHeader, java.awt.BorderLayout.PAGE_START);

        pnlSubjectManagerLeftFooter.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
        pnlSubjectManagerLeftFooter.setMinimumSize(new java.awt.Dimension(500, 50));
        pnlSubjectManagerLeftFooter.setPreferredSize(new java.awt.Dimension(500, 60));

        btnAddSubject.setFont(new java.awt.Font("Tahoma", 1, 12));
        btnAddSubject.setText("Cho phép THÊM");
        btnAddSubject.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnAddSubjectActionPerformed(evt);
            }
        });
        pnlSubjectManagerLeftFooter.add(btnAddSubject);

        btnEditSubject.setFont(new java.awt.Font("Tahoma", 1, 12));
        btnEditSubject.setText("Cho phép SỬA");
        btnEditSubject.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnEditSubjectActionPerformed(evt);
            }
        });
        pnlSubjectManagerLeftFooter.add(btnEditSubject);

        btnDeleteSubject.setFont(new java.awt.Font("Tahoma", 1, 12));
        btnDeleteSubject.setText("XÓA");
        btnDeleteSubject.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnDeleteSubjectActionPerformed(evt);
            }
        });
        pnlSubjectManagerLeftFooter.add(btnDeleteSubject);

        pnlSubjectManagerLeft.add(pnlSubjectManagerLeftFooter, java.awt.BorderLayout.PAGE_END);

        pnlSubjectManagerLeftCenter.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
        pnlSubjectManagerLeftCenter.setPreferredSize(new java.awt.Dimension(500, 530));

        lblSubjectNameForSubject.setFont(new java.awt.Font("Tahoma", 1, 11));
        lblSubjectNameForSubject.setText("Tên môn học:");

        lblClassRoomBlockForSubject.setFont(new java.awt.Font("Tahoma", 1, 11));
        lblClassRoomBlockForSubject.setText("Khối học:");

        cbbClassRoomBlockForSubject.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        cbbClassPeriodForSubject.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        lblClassPeriodForSubject.setFont(new java.awt.Font("Tahoma", 1, 11));
        lblClassPeriodForSubject.setText("Số tiết:");

        lblPointTypeForSubject.setFont(new java.awt.Font("Tahoma", 1, 11));
        lblPointTypeForSubject.setText("Cách tính điểm:");

        cbbPointTypeForSubject.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        javax.swing.GroupLayout pnlSubjectManagerLeftCenterLayout = new javax.swing.GroupLayout(pnlSubjectManagerLeftCenter);
        pnlSubjectManagerLeftCenter.setLayout(pnlSubjectManagerLeftCenterLayout);
        pnlSubjectManagerLeftCenterLayout.setHorizontalGroup(
            pnlSubjectManagerLeftCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlSubjectManagerLeftCenterLayout.createSequentialGroup()
                .addGap(63, 63, 63)
                .addGroup(pnlSubjectManagerLeftCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlSubjectManagerLeftCenterLayout.createSequentialGroup()
                        .addComponent(lblClassRoomBlockForSubject)
                        .addGap(64, 64, 64)
                        .addComponent(cbbClassRoomBlockForSubject, javax.swing.GroupLayout.PREFERRED_SIZE, 175, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(pnlSubjectManagerLeftCenterLayout.createSequentialGroup()
                        .addComponent(lblSubjectNameForSubject)
                        .addGap(39, 39, 39)
                        .addComponent(txtSubjectNameForSubject, javax.swing.GroupLayout.PREFERRED_SIZE, 225, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(pnlSubjectManagerLeftCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, pnlSubjectManagerLeftCenterLayout.createSequentialGroup()
                            .addComponent(lblPointTypeForSubject)
                            .addGap(28, 28, 28)
                            .addComponent(cbbPointTypeForSubject, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, pnlSubjectManagerLeftCenterLayout.createSequentialGroup()
                            .addComponent(lblClassPeriodForSubject)
                            .addGap(74, 74, 74)
                            .addComponent(cbbClassPeriodForSubject, javax.swing.GroupLayout.PREFERRED_SIZE, 136, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addContainerGap(90, Short.MAX_VALUE))
        );
        pnlSubjectManagerLeftCenterLayout.setVerticalGroup(
            pnlSubjectManagerLeftCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlSubjectManagerLeftCenterLayout.createSequentialGroup()
                .addGap(43, 43, 43)
                .addGroup(pnlSubjectManagerLeftCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(lblSubjectNameForSubject)
                    .addComponent(txtSubjectNameForSubject, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(28, 28, 28)
                .addGroup(pnlSubjectManagerLeftCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(lblClassRoomBlockForSubject)
                    .addComponent(cbbClassRoomBlockForSubject, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(29, 29, 29)
                .addGroup(pnlSubjectManagerLeftCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(lblClassPeriodForSubject)
                    .addComponent(cbbClassPeriodForSubject, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(27, 27, 27)
                .addGroup(pnlSubjectManagerLeftCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(lblPointTypeForSubject)
                    .addComponent(cbbPointTypeForSubject, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(331, 331, 331))
        );

        pnlSubjectManagerLeft.add(pnlSubjectManagerLeftCenter, java.awt.BorderLayout.CENTER);

        pnlSubjectManager.add(pnlSubjectManagerLeft, java.awt.BorderLayout.LINE_START);

        pnlSubjectManagerRight.setMinimumSize(new java.awt.Dimension(500, 650));
        pnlSubjectManagerRight.setPreferredSize(new java.awt.Dimension(500, 650));
        pnlSubjectManagerRight.setLayout(new java.awt.BorderLayout());

        pnlSubjectManagerRightHeader.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
        pnlSubjectManagerRightHeader.setPreferredSize(new java.awt.Dimension(500, 50));

        lblListSubjectManager.setFont(new java.awt.Font("Tahoma", 1, 16));
        lblListSubjectManager.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        lblListSubjectManager.setText("Danh Sách Môn Học");
        lblListSubjectManager.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);
        lblListSubjectManager.setPreferredSize(new java.awt.Dimension(400, 27));

        javax.swing.GroupLayout pnlSubjectManagerRightHeaderLayout = new javax.swing.GroupLayout(pnlSubjectManagerRightHeader);
        pnlSubjectManagerRightHeader.setLayout(pnlSubjectManagerRightHeaderLayout);
        pnlSubjectManagerRightHeaderLayout.setHorizontalGroup(
            pnlSubjectManagerRightHeaderLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 592, Short.MAX_VALUE)
            .addGroup(pnlSubjectManagerRightHeaderLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(pnlSubjectManagerRightHeaderLayout.createSequentialGroup()
                    .addGap(0, 96, Short.MAX_VALUE)
                    .addComponent(lblListSubjectManager, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 96, Short.MAX_VALUE)))
        );
        pnlSubjectManagerRightHeaderLayout.setVerticalGroup(
            pnlSubjectManagerRightHeaderLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 42, Short.MAX_VALUE)
            .addGroup(pnlSubjectManagerRightHeaderLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(pnlSubjectManagerRightHeaderLayout.createSequentialGroup()
                    .addGap(0, 7, Short.MAX_VALUE)
                    .addComponent(lblListSubjectManager, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 8, Short.MAX_VALUE)))
        );

        pnlSubjectManagerRight.add(pnlSubjectManagerRightHeader, java.awt.BorderLayout.PAGE_START);

        pnlSubjectManagerRightCenter.setPreferredSize(new java.awt.Dimension(500, 610));
        pnlSubjectManagerRightCenter.setLayout(new java.awt.BorderLayout());

        pnlSubjectManagerRightCenterHeader.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
        pnlSubjectManagerRightCenterHeader.setPreferredSize(new java.awt.Dimension(500, 50));

        lblFindBySubjectNameForSubject.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblFindBySubjectNameForSubject.setText("Tìm kiếm theo Khối Học: ");
        lblFindBySubjectNameForSubject.setPreferredSize(new java.awt.Dimension(150, 27));
        pnlSubjectManagerRightCenterHeader.add(lblFindBySubjectNameForSubject);

        txtFindBySubjectNameForSubject.setFont(new java.awt.Font("Tahoma", 0, 12));
        txtFindBySubjectNameForSubject.setMinimumSize(new java.awt.Dimension(120, 23));
        txtFindBySubjectNameForSubject.setPreferredSize(new java.awt.Dimension(120, 23));
        pnlSubjectManagerRightCenterHeader.add(txtFindBySubjectNameForSubject);

        btnFindBySubjectNameForSubject.setFont(new java.awt.Font("Tahoma", 0, 12));
        btnFindBySubjectNameForSubject.setText("Tìm Kiếm");
        btnFindBySubjectNameForSubject.setPreferredSize(new java.awt.Dimension(100, 27));
        btnFindBySubjectNameForSubject.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnFindBySubjectNameForSubjectActionPerformed(evt);
            }
        });
        pnlSubjectManagerRightCenterHeader.add(btnFindBySubjectNameForSubject);

        pnlSubjectManagerRightCenter.add(pnlSubjectManagerRightCenterHeader, java.awt.BorderLayout.PAGE_START);

        pnlSubjectManagerRightCenterFooter.setBackground(new java.awt.Color(255, 255, 255));
        pnlSubjectManagerRightCenterFooter.setPreferredSize(new java.awt.Dimension(500, 100));
        pnlSubjectManagerRightCenterFooter.setLayout(new java.awt.BorderLayout());

        lblLienHe1.setBackground(new java.awt.Color(255, 255, 255));
        lblLienHe1.setFont(new java.awt.Font("Tahoma", 1, 14));
        lblLienHe1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        lblLienHe1.setText("Liên Hệ: Nguyễn Văn Tính");
        pnlSubjectManagerRightCenterFooter.add(lblLienHe1, java.awt.BorderLayout.CENTER);

        pnlSubjectManagerRightCenter.add(pnlSubjectManagerRightCenterFooter, java.awt.BorderLayout.PAGE_END);

        pnlSubjectManagerRightCenterCenter.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
        pnlSubjectManagerRightCenterCenter.setPreferredSize(new java.awt.Dimension(500, 400));
        pnlSubjectManagerRightCenterCenter.setLayout(new java.awt.BorderLayout());

        tblSubjectManager.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Title 1", "Title 2", "Title 3", "Title 4"
            }
        ));
        tblSubjectManager.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                tblSubjectManagerMouseClicked(evt);
            }
        });
        tblSubjectManager.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                tblSubjectManagerKeyPressed(evt);
            }
        });
        jsPaneSubjectManager.setViewportView(tblSubjectManager);

        pnlSubjectManagerRightCenterCenter.add(jsPaneSubjectManager, java.awt.BorderLayout.CENTER);

        pnlSubjectManagerRightCenter.add(pnlSubjectManagerRightCenterCenter, java.awt.BorderLayout.CENTER);

        pnlSubjectManagerRight.add(pnlSubjectManagerRightCenter, java.awt.BorderLayout.CENTER);

        pnlSubjectManager.add(pnlSubjectManagerRight, java.awt.BorderLayout.CENTER);

        pnlCenter.add(pnlSubjectManager, "card3");

        pnlTeacherManager.setPreferredSize(new java.awt.Dimension(1000, 550));
        pnlTeacherManager.setLayout(new java.awt.BorderLayout());

        pnlTeacherManagerLeft.setMinimumSize(new java.awt.Dimension(500, 650));
        pnlTeacherManagerLeft.setPreferredSize(new java.awt.Dimension(500, 650));
        pnlTeacherManagerLeft.setLayout(new java.awt.BorderLayout());

        pnlTeacherManagerLeftHeader.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
        pnlTeacherManagerLeftHeader.setMinimumSize(new java.awt.Dimension(500, 50));
        pnlTeacherManagerLeftHeader.setPreferredSize(new java.awt.Dimension(500, 50));

        lblTeacherManager.setFont(new java.awt.Font("Tahoma", 0, 18));
        lblTeacherManager.setText("THÔNG TIN VỀ GIÁO VIÊN");
        pnlTeacherManagerLeftHeader.add(lblTeacherManager);

        pnlTeacherManagerLeft.add(pnlTeacherManagerLeftHeader, java.awt.BorderLayout.PAGE_START);

        pnlTeacherManagerLeftFooter.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
        pnlTeacherManagerLeftFooter.setMinimumSize(new java.awt.Dimension(500, 50));
        pnlTeacherManagerLeftFooter.setPreferredSize(new java.awt.Dimension(500, 60));

        btnAddTeacher.setFont(new java.awt.Font("Tahoma", 1, 12));
        btnAddTeacher.setText("Cho phép THÊM giáo viên");
        btnAddTeacher.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnAddTeacherActionPerformed(evt);
            }
        });
        pnlTeacherManagerLeftFooter.add(btnAddTeacher);

        btnEditTeacher.setFont(new java.awt.Font("Tahoma", 1, 12));
        btnEditTeacher.setText("Cho phép SỬA giáo viên");
        btnEditTeacher.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnEditTeacherActionPerformed(evt);
            }
        });
        pnlTeacherManagerLeftFooter.add(btnEditTeacher);

        btnDeleteTeacher.setFont(new java.awt.Font("Tahoma", 1, 12));
        btnDeleteTeacher.setText("XÓA");
        btnDeleteTeacher.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnDeleteTeacherActionPerformed(evt);
            }
        });
        pnlTeacherManagerLeftFooter.add(btnDeleteTeacher);

        pnlTeacherManagerLeft.add(pnlTeacherManagerLeftFooter, java.awt.BorderLayout.PAGE_END);

        pnlTeacherManagerLeftCenter.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
        pnlTeacherManagerLeftCenter.setPreferredSize(new java.awt.Dimension(500, 530));
        pnlTeacherManagerLeftCenter.setLayout(new java.awt.BorderLayout());

        pnlTeacherManagerLeftCenterCenter.setBorder(javax.swing.BorderFactory.createTitledBorder("Thông tin cá nhân"));
        pnlTeacherManagerLeftCenterCenter.setPreferredSize(new java.awt.Dimension(500, 320));

        lblTeacherNameForTeacher.setText("Họ Tên:");

        lblBirthDayForTeacher.setText("Ngày Sinh:");

        cbbDayBirthdayForTeacher.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        cbbMonthBirthdayForTeacher.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        cbbYearBirthdayForTeacher.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        lblGenderForTeacher.setText("Giới Tính:");

        groupButtonGender.add(rdFemaleForTeacher);
        rdFemaleForTeacher.setSelected(true);
        rdFemaleForTeacher.setText("Nam");

        groupButtonGender.add(rdMaleForTeacher);
        rdMaleForTeacher.setText("Nữ");

        lblPhoneForTeacher.setText("Điện Thoại:");

        txaAddressForTeacher.setColumns(20);
        txaAddressForTeacher.setRows(5);
        jsAddress.setViewportView(txaAddressForTeacher);

        lblAddressForTeacher.setText("Địa chỉ:");

        lblProvinceForTeacher.setText("Tỉnh:");

        cbbProvinceForTeacher.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        javax.swing.GroupLayout pnlTeacherManagerLeftCenterCenterLayout = new javax.swing.GroupLayout(pnlTeacherManagerLeftCenterCenter);
        pnlTeacherManagerLeftCenterCenter.setLayout(pnlTeacherManagerLeftCenterCenterLayout);
        pnlTeacherManagerLeftCenterCenterLayout.setHorizontalGroup(
            pnlTeacherManagerLeftCenterCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlTeacherManagerLeftCenterCenterLayout.createSequentialGroup()
                .addGap(36, 36, 36)
                .addGroup(pnlTeacherManagerLeftCenterCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblGenderForTeacher)
                    .addComponent(lblTeacherNameForTeacher)
                    .addComponent(lblBirthDayForTeacher)
                    .addComponent(lblPhoneForTeacher)
                    .addComponent(lblAddressForTeacher)
                    .addComponent(lblProvinceForTeacher))
                .addGap(44, 44, 44)
                .addGroup(pnlTeacherManagerLeftCenterCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlTeacherManagerLeftCenterCenterLayout.createSequentialGroup()
                        .addComponent(txtTeacherNameForTeacher, javax.swing.GroupLayout.PREFERRED_SIZE, 276, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addContainerGap())
                    .addGroup(pnlTeacherManagerLeftCenterCenterLayout.createSequentialGroup()
                        .addGroup(pnlTeacherManagerLeftCenterCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(cbbProvinceForTeacher, javax.swing.GroupLayout.PREFERRED_SIZE, 185, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(pnlTeacherManagerLeftCenterCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jsAddress, javax.swing.GroupLayout.DEFAULT_SIZE, 276, Short.MAX_VALUE)
                                .addGroup(pnlTeacherManagerLeftCenterCenterLayout.createSequentialGroup()
                                    .addComponent(rdFemaleForTeacher, javax.swing.GroupLayout.PREFERRED_SIZE, 72, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                    .addComponent(rdMaleForTeacher, javax.swing.GroupLayout.PREFERRED_SIZE, 72, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGroup(pnlTeacherManagerLeftCenterCenterLayout.createSequentialGroup()
                                    .addComponent(cbbDayBirthdayForTeacher, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(18, 18, 18)
                                    .addComponent(cbbMonthBirthdayForTeacher, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(18, 18, 18)
                                    .addComponent(cbbYearBirthdayForTeacher, javax.swing.GroupLayout.PREFERRED_SIZE, 74, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addComponent(txtPhoneForTeacher, javax.swing.GroupLayout.DEFAULT_SIZE, 276, Short.MAX_VALUE)))
                        .addGap(65, 65, 65))))
        );
        pnlTeacherManagerLeftCenterCenterLayout.setVerticalGroup(
            pnlTeacherManagerLeftCenterCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlTeacherManagerLeftCenterCenterLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pnlTeacherManagerLeftCenterCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(lblTeacherNameForTeacher)
                    .addComponent(txtTeacherNameForTeacher, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(pnlTeacherManagerLeftCenterCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(lblBirthDayForTeacher)
                    .addGroup(pnlTeacherManagerLeftCenterCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(cbbDayBirthdayForTeacher, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(cbbMonthBirthdayForTeacher, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(cbbYearBirthdayForTeacher, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(18, 18, 18)
                .addGroup(pnlTeacherManagerLeftCenterCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(pnlTeacherManagerLeftCenterCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(rdFemaleForTeacher)
                        .addComponent(rdMaleForTeacher))
                    .addComponent(lblGenderForTeacher))
                .addGap(18, 18, 18)
                .addGroup(pnlTeacherManagerLeftCenterCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(lblPhoneForTeacher)
                    .addComponent(txtPhoneForTeacher, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGroup(pnlTeacherManagerLeftCenterCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlTeacherManagerLeftCenterCenterLayout.createSequentialGroup()
                        .addGap(26, 26, 26)
                        .addComponent(lblAddressForTeacher))
                    .addGroup(pnlTeacherManagerLeftCenterCenterLayout.createSequentialGroup()
                        .addGap(18, 18, 18)
                        .addComponent(jsAddress, javax.swing.GroupLayout.PREFERRED_SIZE, 63, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(pnlTeacherManagerLeftCenterCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(cbbProvinceForTeacher, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblProvinceForTeacher, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );

        pnlTeacherManagerLeftCenter.add(pnlTeacherManagerLeftCenterCenter, java.awt.BorderLayout.PAGE_START);

        pnlTeacherManagerLeftCenterFooter.setBorder(javax.swing.BorderFactory.createTitledBorder("Thông tin về lương"));
        pnlTeacherManagerLeftCenterFooter.setMinimumSize(new java.awt.Dimension(500, 220));
        pnlTeacherManagerLeftCenterFooter.setPreferredSize(new java.awt.Dimension(500, 210));

        lblDayForTeacher.setText("Ngày vào Nghành:");

        cbbDayForTeacher.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        cbbMonthForTeacher.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        cbbYearForTeacher.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        cbbSalaryScoreForTeacher.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        lblSalaryScoreForTeacher.setText("Hệ số lương cơ bản:");

        lblSeniorityScoreForTeacher.setText("Phụ cấp đứng lớp (%):");

        cbbSeniorityScoreForTeacher.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        lblAllowanceForTeacher.setText("Phụ cấp chức vụ:");

        cbbAllowanceForTeacher.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        javax.swing.GroupLayout pnlTeacherManagerLeftCenterFooterLayout = new javax.swing.GroupLayout(pnlTeacherManagerLeftCenterFooter);
        pnlTeacherManagerLeftCenterFooter.setLayout(pnlTeacherManagerLeftCenterFooterLayout);
        pnlTeacherManagerLeftCenterFooterLayout.setHorizontalGroup(
            pnlTeacherManagerLeftCenterFooterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlTeacherManagerLeftCenterFooterLayout.createSequentialGroup()
                .addGap(45, 45, 45)
                .addGroup(pnlTeacherManagerLeftCenterFooterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblAllowanceForTeacher)
                    .addComponent(lblSeniorityScoreForTeacher)
                    .addComponent(lblSalaryScoreForTeacher)
                    .addComponent(lblDayForTeacher))
                .addGap(26, 26, 26)
                .addGroup(pnlTeacherManagerLeftCenterFooterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlTeacherManagerLeftCenterFooterLayout.createSequentialGroup()
                        .addGroup(pnlTeacherManagerLeftCenterFooterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(cbbSeniorityScoreForTeacher, 0, 117, Short.MAX_VALUE)
                            .addComponent(cbbAllowanceForTeacher, 0, 117, Short.MAX_VALUE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 60, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(pnlTeacherManagerLeftCenterFooterLayout.createSequentialGroup()
                        .addComponent(cbbSalaryScoreForTeacher, 0, 117, Short.MAX_VALUE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 60, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(pnlTeacherManagerLeftCenterFooterLayout.createSequentialGroup()
                        .addComponent(cbbDayForTeacher, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(3, 3, 3)
                        .addComponent(cbbMonthForTeacher, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(cbbYearForTeacher, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(119, 119, 119))
        );
        pnlTeacherManagerLeftCenterFooterLayout.setVerticalGroup(
            pnlTeacherManagerLeftCenterFooterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlTeacherManagerLeftCenterFooterLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pnlTeacherManagerLeftCenterFooterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(cbbDayForTeacher, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(cbbMonthForTeacher, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(cbbYearForTeacher, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblDayForTeacher))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 47, Short.MAX_VALUE)
                .addGroup(pnlTeacherManagerLeftCenterFooterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblSalaryScoreForTeacher, javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(cbbSalaryScoreForTeacher, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(pnlTeacherManagerLeftCenterFooterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblSeniorityScoreForTeacher, javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(cbbSeniorityScoreForTeacher, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(pnlTeacherManagerLeftCenterFooterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(cbbAllowanceForTeacher, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblAllowanceForTeacher, javax.swing.GroupLayout.Alignment.TRAILING))
                .addGap(18, 18, 18))
        );

        pnlTeacherManagerLeftCenter.add(pnlTeacherManagerLeftCenterFooter, java.awt.BorderLayout.CENTER);

        pnlTeacherManagerLeft.add(pnlTeacherManagerLeftCenter, java.awt.BorderLayout.CENTER);

        pnlTeacherManager.add(pnlTeacherManagerLeft, java.awt.BorderLayout.LINE_START);

        pnlTeacherManagerRight.setMinimumSize(new java.awt.Dimension(600, 650));
        pnlTeacherManagerRight.setPreferredSize(new java.awt.Dimension(600, 650));
        pnlTeacherManagerRight.setLayout(new java.awt.BorderLayout());

        pnlTeacherManagerRightHeader.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
        pnlTeacherManagerRightHeader.setPreferredSize(new java.awt.Dimension(600, 50));

        lblTeacherClassManager.setFont(new java.awt.Font("Tahoma", 1, 16));
        lblTeacherClassManager.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        lblTeacherClassManager.setText("Danh Sách Giáo Viên");
        lblTeacherClassManager.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);
        lblTeacherClassManager.setPreferredSize(new java.awt.Dimension(400, 27));

        javax.swing.GroupLayout pnlTeacherManagerRightHeaderLayout = new javax.swing.GroupLayout(pnlTeacherManagerRightHeader);
        pnlTeacherManagerRightHeader.setLayout(pnlTeacherManagerRightHeaderLayout);
        pnlTeacherManagerRightHeaderLayout.setHorizontalGroup(
            pnlTeacherManagerRightHeaderLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 592, Short.MAX_VALUE)
            .addGroup(pnlTeacherManagerRightHeaderLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(pnlTeacherManagerRightHeaderLayout.createSequentialGroup()
                    .addGap(0, 96, Short.MAX_VALUE)
                    .addComponent(lblTeacherClassManager, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 96, Short.MAX_VALUE)))
        );
        pnlTeacherManagerRightHeaderLayout.setVerticalGroup(
            pnlTeacherManagerRightHeaderLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 42, Short.MAX_VALUE)
            .addGroup(pnlTeacherManagerRightHeaderLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(pnlTeacherManagerRightHeaderLayout.createSequentialGroup()
                    .addGap(0, 7, Short.MAX_VALUE)
                    .addComponent(lblTeacherClassManager, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 8, Short.MAX_VALUE)))
        );

        pnlTeacherManagerRight.add(pnlTeacherManagerRightHeader, java.awt.BorderLayout.PAGE_START);

        pnlTeacherManagerRightCenter.setMinimumSize(new java.awt.Dimension(600, 610));
        pnlTeacherManagerRightCenter.setPreferredSize(new java.awt.Dimension(600, 610));
        pnlTeacherManagerRightCenter.setLayout(new java.awt.BorderLayout());

        pnlTeacherManagerRightCenterHeader.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
        pnlTeacherManagerRightCenterHeader.setMinimumSize(new java.awt.Dimension(600, 50));
        pnlTeacherManagerRightCenterHeader.setPreferredSize(new java.awt.Dimension(600, 50));

        lblFindByTeacherNameForTeacher.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblFindByTeacherNameForTeacher.setText("Tìm kiếm theo Tên giáo viên: ");
        lblFindByTeacherNameForTeacher.setPreferredSize(new java.awt.Dimension(165, 27));
        pnlTeacherManagerRightCenterHeader.add(lblFindByTeacherNameForTeacher);

        txtFindByTeacherNameForTeacher.setFont(new java.awt.Font("Tahoma", 0, 12));
        txtFindByTeacherNameForTeacher.setMinimumSize(new java.awt.Dimension(120, 23));
        txtFindByTeacherNameForTeacher.setPreferredSize(new java.awt.Dimension(120, 23));
        pnlTeacherManagerRightCenterHeader.add(txtFindByTeacherNameForTeacher);

        btnFindByTeacherNameForTeacher.setFont(new java.awt.Font("Tahoma", 0, 12));
        btnFindByTeacherNameForTeacher.setText("Tìm Kiếm");
        btnFindByTeacherNameForTeacher.setPreferredSize(new java.awt.Dimension(100, 27));
        pnlTeacherManagerRightCenterHeader.add(btnFindByTeacherNameForTeacher);

        pnlTeacherManagerRightCenter.add(pnlTeacherManagerRightCenterHeader, java.awt.BorderLayout.PAGE_START);

        pnlTeacherManagerRightCenterFooter.setBackground(new java.awt.Color(255, 255, 255));
        pnlTeacherManagerRightCenterFooter.setPreferredSize(new java.awt.Dimension(500, 100));
        pnlTeacherManagerRightCenterFooter.setLayout(new java.awt.BorderLayout());

        lblLienHe2.setBackground(new java.awt.Color(255, 255, 255));
        lblLienHe2.setFont(new java.awt.Font("Tahoma", 1, 14));
        lblLienHe2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        lblLienHe2.setText("Liên Hệ: Nguyễn Văn Tính");
        pnlTeacherManagerRightCenterFooter.add(lblLienHe2, java.awt.BorderLayout.CENTER);

        pnlTeacherManagerRightCenter.add(pnlTeacherManagerRightCenterFooter, java.awt.BorderLayout.PAGE_END);

        pnlTeacherManagerRightCenterCenter.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
        pnlTeacherManagerRightCenterCenter.setPreferredSize(new java.awt.Dimension(500, 400));
        pnlTeacherManagerRightCenterCenter.setLayout(new java.awt.BorderLayout());

        tblTeacherManager.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Title 1", "Title 2", "Title 3", "Title 4"
            }
        ));
        tblTeacherManager.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                tblTeacherManagerMouseClicked(evt);
            }
        });
        jsPaneTeacherManager.setViewportView(tblTeacherManager);

        pnlTeacherManagerRightCenterCenter.add(jsPaneTeacherManager, java.awt.BorderLayout.CENTER);

        pnlTeacherManagerRightCenter.add(pnlTeacherManagerRightCenterCenter, java.awt.BorderLayout.CENTER);

        pnlTeacherManagerRight.add(pnlTeacherManagerRightCenter, java.awt.BorderLayout.CENTER);

        pnlTeacherManager.add(pnlTeacherManagerRight, java.awt.BorderLayout.CENTER);

        pnlCenter.add(pnlTeacherManager, "card4");

        pnlStudentManager.setPreferredSize(new java.awt.Dimension(900, 550));
        pnlStudentManager.setLayout(new java.awt.BorderLayout());

        pnlStudentManagerLeft.setMinimumSize(new java.awt.Dimension(500, 650));
        pnlStudentManagerLeft.setPreferredSize(new java.awt.Dimension(500, 650));
        pnlStudentManagerLeft.setLayout(new java.awt.BorderLayout());

        pnlStudentManagerLeftHeader.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
        pnlStudentManagerLeftHeader.setMinimumSize(new java.awt.Dimension(500, 50));
        pnlStudentManagerLeftHeader.setPreferredSize(new java.awt.Dimension(500, 50));

        lblStudentManager.setFont(new java.awt.Font("Tahoma", 0, 18));
        lblStudentManager.setText("THÔNG TIN VỀ HỌC SINH");
        pnlStudentManagerLeftHeader.add(lblStudentManager);

        pnlStudentManagerLeft.add(pnlStudentManagerLeftHeader, java.awt.BorderLayout.PAGE_START);

        pnlStudentManagerLeftFooter.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
        pnlStudentManagerLeftFooter.setMinimumSize(new java.awt.Dimension(500, 50));
        pnlStudentManagerLeftFooter.setPreferredSize(new java.awt.Dimension(500, 60));

        btnAddStudent.setFont(new java.awt.Font("Tahoma", 1, 12));
        btnAddStudent.setText("Cho phép THÊM");
        btnAddStudent.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnAddStudentActionPerformed(evt);
            }
        });
        pnlStudentManagerLeftFooter.add(btnAddStudent);

        btnEditStudent.setFont(new java.awt.Font("Tahoma", 1, 12));
        btnEditStudent.setText("Cho phép SỬA");
        btnEditStudent.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnEditStudentActionPerformed(evt);
            }
        });
        pnlStudentManagerLeftFooter.add(btnEditStudent);

        btnDeleteStudent.setFont(new java.awt.Font("Tahoma", 1, 12));
        btnDeleteStudent.setText("XÓA");
        btnDeleteStudent.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnDeleteStudentActionPerformed(evt);
            }
        });
        pnlStudentManagerLeftFooter.add(btnDeleteStudent);

        pnlStudentManagerLeft.add(pnlStudentManagerLeftFooter, java.awt.BorderLayout.PAGE_END);

        pnlStudentManagerLeftCenter.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
        pnlStudentManagerLeftCenter.setPreferredSize(new java.awt.Dimension(500, 530));

        lblStudentNameForStudent.setText("Họ Tên:");

        lblBirthDayForStudent.setText("Ngày Sinh:");

        cbbDayForStudent.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        cbbYearForStudent.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        lblGenderForStudent.setText("Giới Tính:");

        groupButtonGender.add(rdFemaleForStudent);
        rdFemaleForStudent.setText("Nam");

        groupButtonGender.add(rdMaleForStudent);
        rdMaleForStudent.setText("Nữ");

        lblFatherForStudent.setText("Họ Tên Bố:");

        llbMotherForStudent.setText("Họ Tên Mẹ:");

        lblPhoneForStudent.setText("Điện Thoại:");

        lblAddressForStudent.setText("Địa chỉ:");

        txaAddressForStudent.setColumns(20);
        txaAddressForStudent.setRows(5);
        jsAddressForStudent.setViewportView(txaAddressForStudent);

        cbbProvinceForStudent.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        lblProvinceForStudent.setText("Tỉnh:");

        cbbClassForStudent.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        lblClassForStudent.setText("Tên Lớp:");

        cbbMonthForStudent.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        javax.swing.GroupLayout pnlStudentManagerLeftCenterLayout = new javax.swing.GroupLayout(pnlStudentManagerLeftCenter);
        pnlStudentManagerLeftCenter.setLayout(pnlStudentManagerLeftCenterLayout);
        pnlStudentManagerLeftCenterLayout.setHorizontalGroup(
            pnlStudentManagerLeftCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlStudentManagerLeftCenterLayout.createSequentialGroup()
                .addGap(80, 80, 80)
                .addGroup(pnlStudentManagerLeftCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblFatherForStudent)
                    .addGroup(pnlStudentManagerLeftCenterLayout.createSequentialGroup()
                        .addGroup(pnlStudentManagerLeftCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(lblStudentNameForStudent)
                            .addComponent(lblBirthDayForStudent)
                            .addComponent(lblPhoneForStudent)
                            .addComponent(lblAddressForStudent)
                            .addComponent(llbMotherForStudent)
                            .addComponent(lblProvinceForStudent)
                            .addComponent(lblClassForStudent)
                            .addComponent(lblGenderForStudent))
                        .addGap(37, 37, 37)
                        .addGroup(pnlStudentManagerLeftCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(pnlStudentManagerLeftCenterLayout.createSequentialGroup()
                                .addGroup(pnlStudentManagerLeftCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(txtPhoneForStudent, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 232, Short.MAX_VALUE)
                                    .addComponent(txtMotherForStudent, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 232, Short.MAX_VALUE)
                                    .addComponent(jsAddressForStudent, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 232, Short.MAX_VALUE)
                                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, pnlStudentManagerLeftCenterLayout.createSequentialGroup()
                                        .addComponent(rdFemaleForStudent, javax.swing.GroupLayout.PREFERRED_SIZE, 72, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addGap(18, 18, 18)
                                        .addComponent(rdMaleForStudent, javax.swing.GroupLayout.PREFERRED_SIZE, 72, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, pnlStudentManagerLeftCenterLayout.createSequentialGroup()
                                        .addComponent(cbbDayForStudent, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addGap(8, 8, 8)
                                        .addComponent(cbbMonthForStudent, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(cbbYearForStudent, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addComponent(txtStudentNameForStudent, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 232, Short.MAX_VALUE)
                                    .addComponent(txtFatherForStudent, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 232, Short.MAX_VALUE))
                                .addGap(88, 88, 88))
                            .addGroup(pnlStudentManagerLeftCenterLayout.createSequentialGroup()
                                .addGroup(pnlStudentManagerLeftCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                    .addComponent(cbbProvinceForStudent, javax.swing.GroupLayout.Alignment.LEADING, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(cbbClassForStudent, javax.swing.GroupLayout.Alignment.LEADING, 0, 173, Short.MAX_VALUE))
                                .addContainerGap())))))
        );
        pnlStudentManagerLeftCenterLayout.setVerticalGroup(
            pnlStudentManagerLeftCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlStudentManagerLeftCenterLayout.createSequentialGroup()
                .addGap(29, 29, 29)
                .addGroup(pnlStudentManagerLeftCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(txtStudentNameForStudent, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblStudentNameForStudent))
                .addGap(18, 18, 18)
                .addGroup(pnlStudentManagerLeftCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(lblBirthDayForStudent)
                    .addGroup(pnlStudentManagerLeftCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(cbbDayForStudent, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(cbbYearForStudent, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(cbbMonthForStudent, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(18, 18, 18)
                .addGroup(pnlStudentManagerLeftCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(rdFemaleForStudent)
                    .addComponent(rdMaleForStudent)
                    .addComponent(lblGenderForStudent, javax.swing.GroupLayout.PREFERRED_SIZE, 18, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(23, 23, 23)
                .addGroup(pnlStudentManagerLeftCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(lblFatherForStudent)
                    .addComponent(txtFatherForStudent, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(24, 24, 24)
                .addGroup(pnlStudentManagerLeftCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtMotherForStudent, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(llbMotherForStudent))
                .addGap(24, 24, 24)
                .addGroup(pnlStudentManagerLeftCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblPhoneForStudent)
                    .addComponent(txtPhoneForStudent, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(24, 24, 24)
                .addGroup(pnlStudentManagerLeftCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblAddressForStudent)
                    .addComponent(jsAddressForStudent, javax.swing.GroupLayout.PREFERRED_SIZE, 86, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(26, 26, 26)
                .addGroup(pnlStudentManagerLeftCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(cbbProvinceForStudent, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblProvinceForStudent))
                .addGap(24, 24, 24)
                .addGroup(pnlStudentManagerLeftCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(cbbClassForStudent, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblClassForStudent))
                .addContainerGap(63, Short.MAX_VALUE))
        );

        pnlStudentManagerLeft.add(pnlStudentManagerLeftCenter, java.awt.BorderLayout.CENTER);

        pnlStudentManager.add(pnlStudentManagerLeft, java.awt.BorderLayout.LINE_START);

        pnlStudentManagerRight.setMinimumSize(new java.awt.Dimension(500, 650));
        pnlStudentManagerRight.setPreferredSize(new java.awt.Dimension(500, 650));
        pnlStudentManagerRight.setLayout(new java.awt.BorderLayout());

        pnlStudentManagerRightHeader.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
        pnlStudentManagerRightHeader.setPreferredSize(new java.awt.Dimension(500, 50));

        lblListStudentManager.setFont(new java.awt.Font("Tahoma", 1, 16));
        lblListStudentManager.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        lblListStudentManager.setText("Danh Sách Học Sinh");
        lblListStudentManager.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);
        lblListStudentManager.setPreferredSize(new java.awt.Dimension(400, 27));

        javax.swing.GroupLayout pnlStudentManagerRightHeaderLayout = new javax.swing.GroupLayout(pnlStudentManagerRightHeader);
        pnlStudentManagerRightHeader.setLayout(pnlStudentManagerRightHeaderLayout);
        pnlStudentManagerRightHeaderLayout.setHorizontalGroup(
            pnlStudentManagerRightHeaderLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 592, Short.MAX_VALUE)
            .addGroup(pnlStudentManagerRightHeaderLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(pnlStudentManagerRightHeaderLayout.createSequentialGroup()
                    .addGap(0, 96, Short.MAX_VALUE)
                    .addComponent(lblListStudentManager, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 96, Short.MAX_VALUE)))
        );
        pnlStudentManagerRightHeaderLayout.setVerticalGroup(
            pnlStudentManagerRightHeaderLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 42, Short.MAX_VALUE)
            .addGroup(pnlStudentManagerRightHeaderLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(pnlStudentManagerRightHeaderLayout.createSequentialGroup()
                    .addGap(0, 7, Short.MAX_VALUE)
                    .addComponent(lblListStudentManager, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 8, Short.MAX_VALUE)))
        );

        pnlStudentManagerRight.add(pnlStudentManagerRightHeader, java.awt.BorderLayout.PAGE_START);

        pnlStudentManagerRightCenter.setPreferredSize(new java.awt.Dimension(500, 610));
        pnlStudentManagerRightCenter.setLayout(new java.awt.BorderLayout());

        pnlStudentManagerRightCenterHeader.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
        pnlStudentManagerRightCenterHeader.setPreferredSize(new java.awt.Dimension(500, 50));

        lblFindByStudentIDNameForStudent.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblFindByStudentIDNameForStudent.setText("Tìm kiếm theo Mã Học Sinh:");
        lblFindByStudentIDNameForStudent.setPreferredSize(new java.awt.Dimension(160, 27));
        pnlStudentManagerRightCenterHeader.add(lblFindByStudentIDNameForStudent);

        txtFindByStudentIDForStudent.setFont(new java.awt.Font("Tahoma", 0, 12));
        txtFindByStudentIDForStudent.setMinimumSize(new java.awt.Dimension(120, 23));
        txtFindByStudentIDForStudent.setPreferredSize(new java.awt.Dimension(120, 23));
        pnlStudentManagerRightCenterHeader.add(txtFindByStudentIDForStudent);

        btnFindByStudentIDForStudent.setFont(new java.awt.Font("Tahoma", 0, 12));
        btnFindByStudentIDForStudent.setText("Tìm Kiếm");
        btnFindByStudentIDForStudent.setPreferredSize(new java.awt.Dimension(100, 27));
        btnFindByStudentIDForStudent.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnFindByStudentIDForStudentActionPerformed(evt);
            }
        });
        pnlStudentManagerRightCenterHeader.add(btnFindByStudentIDForStudent);

        pnlStudentManagerRightCenter.add(pnlStudentManagerRightCenterHeader, java.awt.BorderLayout.PAGE_START);

        pnlStudentManagerRightCenterFooter.setBackground(new java.awt.Color(255, 255, 255));
        pnlStudentManagerRightCenterFooter.setPreferredSize(new java.awt.Dimension(500, 100));
        pnlStudentManagerRightCenterFooter.setLayout(new java.awt.BorderLayout());

        lblLienHe3.setBackground(new java.awt.Color(255, 255, 255));
        lblLienHe3.setFont(new java.awt.Font("Tahoma", 1, 14));
        lblLienHe3.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        lblLienHe3.setText("Liên Hệ: Nguyễn Văn Tính");
        pnlStudentManagerRightCenterFooter.add(lblLienHe3, java.awt.BorderLayout.CENTER);

        pnlStudentManagerRightCenter.add(pnlStudentManagerRightCenterFooter, java.awt.BorderLayout.PAGE_END);

        pnlStudentManagerRightCenterCenter.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
        pnlStudentManagerRightCenterCenter.setPreferredSize(new java.awt.Dimension(500, 400));
        pnlStudentManagerRightCenterCenter.setLayout(new java.awt.BorderLayout());

        tblStudentManager.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Title 1", "Title 2", "Title 3", "Title 4"
            }
        ));
        tblStudentManager.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                tblStudentManagerMouseClicked(evt);
            }
        });
        jsPaneStudentManager.setViewportView(tblStudentManager);

        pnlStudentManagerRightCenterCenter.add(jsPaneStudentManager, java.awt.BorderLayout.CENTER);

        pnlStudentManagerRightCenter.add(pnlStudentManagerRightCenterCenter, java.awt.BorderLayout.CENTER);

        pnlStudentManagerRight.add(pnlStudentManagerRightCenter, java.awt.BorderLayout.CENTER);

        pnlStudentManager.add(pnlStudentManagerRight, java.awt.BorderLayout.CENTER);

        pnlCenter.add(pnlStudentManager, "card5");

        pnlMarkManager.setPreferredSize(new java.awt.Dimension(900, 550));
        pnlMarkManager.setLayout(new java.awt.BorderLayout());

        pnlMarkManagerLeft.setMinimumSize(new java.awt.Dimension(500, 650));
        pnlMarkManagerLeft.setPreferredSize(new java.awt.Dimension(500, 650));
        pnlMarkManagerLeft.setLayout(new java.awt.BorderLayout());

        pnlMarkManagerLeftHeader.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
        pnlMarkManagerLeftHeader.setMinimumSize(new java.awt.Dimension(500, 50));
        pnlMarkManagerLeftHeader.setPreferredSize(new java.awt.Dimension(500, 40));

        lblMarkManager.setFont(new java.awt.Font("Tahoma", 0, 18));
        lblMarkManager.setText("THÔNG TIN VỀ ĐIỂM");
        pnlMarkManagerLeftHeader.add(lblMarkManager);

        pnlMarkManagerLeft.add(pnlMarkManagerLeftHeader, java.awt.BorderLayout.PAGE_START);

        pnlMarkManagerLeftFooter.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
        pnlMarkManagerLeftFooter.setMinimumSize(new java.awt.Dimension(500, 50));
        pnlMarkManagerLeftFooter.setPreferredSize(new java.awt.Dimension(500, 40));

        btnAddMark.setFont(new java.awt.Font("Tahoma", 1, 12));
        btnAddMark.setText("Cho phép THÊM");
        btnAddMark.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnAddMarkActionPerformed(evt);
            }
        });
        pnlMarkManagerLeftFooter.add(btnAddMark);

        btnEditMark.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        btnEditMark.setText("Cho phép SỬA");
        btnEditMark.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnEditMarkActionPerformed(evt);
            }
        });
        pnlMarkManagerLeftFooter.add(btnEditMark);

        btnDeleteMark.setFont(new java.awt.Font("Tahoma", 1, 12));
        btnDeleteMark.setText("XÓA");
        btnDeleteMark.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnDeleteMarkActionPerformed(evt);
            }
        });
        pnlMarkManagerLeftFooter.add(btnDeleteMark);

        pnlMarkManagerLeft.add(pnlMarkManagerLeftFooter, java.awt.BorderLayout.PAGE_END);

        pnlMarkManagerLeftCenter.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
        pnlMarkManagerLeftCenter.setPreferredSize(new java.awt.Dimension(500, 530));
        pnlMarkManagerLeftCenter.setLayout(new java.awt.CardLayout());

        pnlShowMarkByStudent.setPreferredSize(new java.awt.Dimension(492, 542));

        jLabel2.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel2.setText("Môn Học");

        jLabel4.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel4.setText("Điểm Học Kỳ I");

        jLabel6.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel6.setText("Điểm Học Kỳ II");

        lblSubjectName1.setText("jLabel7");

        lblSubjectName2.setText("jLabel7");

        lblSubjectName3.setText("jLabel7");

        lblSubjectName4.setText("jLabel7");

        lblSubjectName5.setText("jLabel7");

        lblSubjectName6.setText("jLabel7");

        lblSubjectName7.setText("jLabel7");

        lblSubjectName8.setText("jLabel7");

        cbbMarkSemesterIOfSubject1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        cbbMarkSemesterIIOfSubject1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        cbbMarkSemesterIOfSubject2.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        cbbMarkSemesterIIOfSubject2.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        cbbMarkSemesterIOfSubject3.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        cbbMarkSemesterIIOfSubject3.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        cbbMarkSemesterIOfSubject4.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        cbbMarkSemesterIIOfSubject4.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        cbbMarkSemesterIOfSubject5.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        cbbMarkSemesterIIOfSubject5.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        cbbMarkSemesterIOfSubject6.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        cbbMarkSemesterIIOfSubject6.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        cbbMarkSemesterIOfSubject7.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        cbbMarkSemesterIIOfSubject7.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        cbbMarkSemesterIOfSubject9.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        cbbMarkSemesterIIOfSubject9.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        lblSubjectName9.setText("jLabel7");

        cbbMarkSemesterIOfSubject8.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        cbbMarkSemesterIIOfSubject8.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        lblSubjectName10.setText("jLabel7");

        cbbMarkSemesterIOfSubject10.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        cbbMarkSemesterIIOfSubject10.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        cbbMarkSemesterIIOfSubject11.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        lblSubjectName11.setText("jLabel7");

        cbbMarkSemesterIOfSubject11.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        lblSubjectName12.setText("jLabel7");

        cbbMarkSemesterIOfSubject12.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        cbbMarkSemesterIIOfSubject12.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        javax.swing.GroupLayout pnlShowMarkByStudentLayout = new javax.swing.GroupLayout(pnlShowMarkByStudent);
        pnlShowMarkByStudent.setLayout(pnlShowMarkByStudentLayout);
        pnlShowMarkByStudentLayout.setHorizontalGroup(
            pnlShowMarkByStudentLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlShowMarkByStudentLayout.createSequentialGroup()
                .addGap(42, 42, 42)
                .addGroup(pnlShowMarkByStudentLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel2)
                    .addComponent(lblSubjectName1)
                    .addComponent(lblSubjectName2)
                    .addComponent(lblSubjectName3)
                    .addComponent(lblSubjectName4)
                    .addComponent(lblSubjectName5)
                    .addComponent(lblSubjectName6)
                    .addComponent(lblSubjectName7)
                    .addComponent(lblSubjectName8)
                    .addComponent(lblSubjectName9)
                    .addComponent(lblSubjectName10)
                    .addComponent(lblSubjectName11)
                    .addComponent(lblSubjectName12))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 92, Short.MAX_VALUE)
                .addGroup(pnlShowMarkByStudentLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel4)
                    .addComponent(cbbMarkSemesterIOfSubject1, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(cbbMarkSemesterIOfSubject2, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(cbbMarkSemesterIOfSubject3, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(cbbMarkSemesterIOfSubject4, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(cbbMarkSemesterIOfSubject5, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(cbbMarkSemesterIOfSubject6, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(cbbMarkSemesterIOfSubject7, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(cbbMarkSemesterIOfSubject9, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(cbbMarkSemesterIOfSubject8, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(cbbMarkSemesterIOfSubject10, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(cbbMarkSemesterIOfSubject11, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(cbbMarkSemesterIOfSubject12, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(52, 52, 52)
                .addGroup(pnlShowMarkByStudentLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(cbbMarkSemesterIIOfSubject8, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(cbbMarkSemesterIIOfSubject9, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(cbbMarkSemesterIIOfSubject7, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(cbbMarkSemesterIIOfSubject6, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(cbbMarkSemesterIIOfSubject5, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(cbbMarkSemesterIIOfSubject4, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(cbbMarkSemesterIIOfSubject3, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(cbbMarkSemesterIIOfSubject2, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(cbbMarkSemesterIIOfSubject1, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel6)
                    .addComponent(cbbMarkSemesterIIOfSubject10, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(cbbMarkSemesterIIOfSubject11, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(cbbMarkSemesterIIOfSubject12, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(77, 77, 77))
        );
        pnlShowMarkByStudentLayout.setVerticalGroup(
            pnlShowMarkByStudentLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlShowMarkByStudentLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pnlShowMarkByStudentLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel2)
                    .addComponent(jLabel6)
                    .addComponent(jLabel4))
                .addGap(20, 20, 20)
                .addGroup(pnlShowMarkByStudentLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(lblSubjectName1, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(pnlShowMarkByStudentLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(cbbMarkSemesterIOfSubject1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(cbbMarkSemesterIIOfSubject1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(20, 20, 20)
                .addGroup(pnlShowMarkByStudentLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(lblSubjectName2, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(pnlShowMarkByStudentLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(cbbMarkSemesterIOfSubject2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(cbbMarkSemesterIIOfSubject2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(20, 20, 20)
                .addGroup(pnlShowMarkByStudentLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(lblSubjectName3, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(pnlShowMarkByStudentLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(cbbMarkSemesterIOfSubject3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(cbbMarkSemesterIIOfSubject3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(20, 20, 20)
                .addGroup(pnlShowMarkByStudentLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(lblSubjectName4, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(pnlShowMarkByStudentLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(cbbMarkSemesterIOfSubject4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(cbbMarkSemesterIIOfSubject4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(20, 20, 20)
                .addGroup(pnlShowMarkByStudentLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(lblSubjectName5, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(pnlShowMarkByStudentLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(cbbMarkSemesterIOfSubject5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(cbbMarkSemesterIIOfSubject5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(20, 20, 20)
                .addGroup(pnlShowMarkByStudentLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(lblSubjectName6, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(pnlShowMarkByStudentLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(cbbMarkSemesterIOfSubject6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(cbbMarkSemesterIIOfSubject6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(20, 20, 20)
                .addGroup(pnlShowMarkByStudentLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(lblSubjectName7, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(pnlShowMarkByStudentLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(cbbMarkSemesterIOfSubject7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(cbbMarkSemesterIIOfSubject7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGroup(pnlShowMarkByStudentLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(pnlShowMarkByStudentLayout.createSequentialGroup()
                        .addGap(26, 26, 26)
                        .addComponent(lblSubjectName8, javax.swing.GroupLayout.DEFAULT_SIZE, 14, Short.MAX_VALUE))
                    .addGroup(pnlShowMarkByStudentLayout.createSequentialGroup()
                        .addGap(20, 20, 20)
                        .addGroup(pnlShowMarkByStudentLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(cbbMarkSemesterIOfSubject8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(cbbMarkSemesterIIOfSubject8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addGroup(pnlShowMarkByStudentLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlShowMarkByStudentLayout.createSequentialGroup()
                        .addGap(26, 26, 26)
                        .addComponent(lblSubjectName9, javax.swing.GroupLayout.DEFAULT_SIZE, 14, Short.MAX_VALUE))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlShowMarkByStudentLayout.createSequentialGroup()
                        .addGap(20, 20, 20)
                        .addGroup(pnlShowMarkByStudentLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(cbbMarkSemesterIOfSubject9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(cbbMarkSemesterIIOfSubject9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlShowMarkByStudentLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlShowMarkByStudentLayout.createSequentialGroup()
                        .addGap(26, 26, 26)
                        .addComponent(lblSubjectName10, javax.swing.GroupLayout.DEFAULT_SIZE, 14, Short.MAX_VALUE))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlShowMarkByStudentLayout.createSequentialGroup()
                        .addGap(20, 20, 20)
                        .addGroup(pnlShowMarkByStudentLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(cbbMarkSemesterIOfSubject10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(cbbMarkSemesterIIOfSubject10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlShowMarkByStudentLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlShowMarkByStudentLayout.createSequentialGroup()
                        .addGap(26, 26, 26)
                        .addComponent(lblSubjectName11, javax.swing.GroupLayout.DEFAULT_SIZE, 14, Short.MAX_VALUE))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlShowMarkByStudentLayout.createSequentialGroup()
                        .addGap(20, 20, 20)
                        .addGroup(pnlShowMarkByStudentLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(cbbMarkSemesterIOfSubject11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(cbbMarkSemesterIIOfSubject11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlShowMarkByStudentLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlShowMarkByStudentLayout.createSequentialGroup()
                        .addGap(26, 26, 26)
                        .addComponent(lblSubjectName12, javax.swing.GroupLayout.DEFAULT_SIZE, 14, Short.MAX_VALUE))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlShowMarkByStudentLayout.createSequentialGroup()
                        .addGap(20, 20, 20)
                        .addGroup(pnlShowMarkByStudentLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(cbbMarkSemesterIOfSubject12, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(cbbMarkSemesterIIOfSubject12, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addGap(156, 156, 156))
        );

        pnlMarkManagerLeftCenter.add(pnlShowMarkByStudent, "card3");

        lblStudentID1.setEditable(false);
        lblStudentID1.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblStudentID1.setText("ID");

        lblStudentIDByMark.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        lblStudentIDByMark.setText("MÃ HỌC SINH");

        lblStudentNameByMark.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        lblStudentNameByMark.setText("TÊN HỌC SINH");

        lblStudentName1.setEditable(false);
        lblStudentName1.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblStudentName1.setText("HoTen");

        lblSemesterI.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        lblSemesterI.setText("HỌC KÌ I");

        cbbMarkSemesterIByStudent1.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N

        lblSemesterII.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        lblSemesterII.setText("HỌC KÌ II");

        cbbMarkSemesterIIByStudent1.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N

        lblStudentID2.setEditable(false);
        lblStudentID2.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblStudentID2.setText("ID");

        lblStudentName2.setEditable(false);
        lblStudentName2.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblStudentName2.setText("HoTen");

        cbbMarkSemesterIByStudent2.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N

        cbbMarkSemesterIIByStudent2.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N

        lblStudentName3.setEditable(false);
        lblStudentName3.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblStudentName3.setText("HoTen");

        cbbMarkSemesterIByStudent3.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N

        lblStudentID3.setEditable(false);
        lblStudentID3.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblStudentID3.setText("ID");

        cbbMarkSemesterIIByStudent3.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N

        cbbMarkSemesterIByStudent5.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N

        lblStudentName5.setEditable(false);
        lblStudentName5.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblStudentName5.setText("HoTen");

        cbbMarkSemesterIIByStudent5.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N

        lblStudentID5.setEditable(false);
        lblStudentID5.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblStudentID5.setText("ID");

        cbbMarkSemesterIByStudent4.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N

        lblStudentName4.setEditable(false);
        lblStudentName4.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblStudentName4.setText("HoTen");

        cbbMarkSemesterIIByStudent4.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N

        lblStudentID4.setEditable(false);
        lblStudentID4.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblStudentID4.setText("ID");

        cbbMarkSemesterIIByStudent6.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N

        cbbMarkSemesterIByStudent6.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N

        lblStudentName6.setEditable(false);
        lblStudentName6.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblStudentName6.setText("HoTen");

        lblStudentID6.setEditable(false);
        lblStudentID6.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblStudentID6.setText("ID");

        lblStudentName7.setEditable(false);
        lblStudentName7.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblStudentName7.setText("HoTen");

        cbbMarkSemesterIByStudent7.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N

        cbbMarkSemesterIIByStudent7.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N

        lblStudentID7.setEditable(false);
        lblStudentID7.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblStudentID7.setText("ID");

        lblStudentName8.setEditable(false);
        lblStudentName8.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblStudentName8.setText("HoTen");

        cbbMarkSemesterIByStudent8.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N

        lblStudentID8.setEditable(false);
        lblStudentID8.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblStudentID8.setText("ID");

        cbbMarkSemesterIIByStudent8.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N

        cbbMarkSemesterIByStudent9.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N

        cbbMarkSemesterIIByStudent9.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N

        lblStudentID9.setEditable(false);
        lblStudentID9.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblStudentID9.setText("ID");

        lblStudentName9.setEditable(false);
        lblStudentName9.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblStudentName9.setText("HoTen");

        cbbMarkSemesterIByStudent10.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N

        lblStudentName10.setEditable(false);
        lblStudentName10.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblStudentName10.setText("HoTen");

        lblStudentID10.setEditable(false);
        lblStudentID10.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblStudentID10.setText("ID");

        cbbMarkSemesterIIByStudent10.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N

        btnEnd.setText(">>");

        btnFirst.setText("<<");

        btnNext.setText(">");

        btnPrevious.setText("<");

        javax.swing.GroupLayout pnlShowMarkBySubjectLayout = new javax.swing.GroupLayout(pnlShowMarkBySubject);
        pnlShowMarkBySubject.setLayout(pnlShowMarkBySubjectLayout);
        pnlShowMarkBySubjectLayout.setHorizontalGroup(
            pnlShowMarkBySubjectLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlShowMarkBySubjectLayout.createSequentialGroup()
                .addGroup(pnlShowMarkBySubjectLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlShowMarkBySubjectLayout.createSequentialGroup()
                        .addGap(28, 28, 28)
                        .addGroup(pnlShowMarkBySubjectLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addComponent(lblStudentID10)
                            .addComponent(lblStudentID9)
                            .addComponent(lblStudentID8)
                            .addComponent(lblStudentID7, javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(lblStudentID6, javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(lblStudentID5)
                            .addComponent(lblStudentID4, javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(lblStudentID3, javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(lblStudentID2, javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(lblStudentID1, javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(lblStudentIDByMark, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                        .addGap(10, 10, 10)
                        .addGroup(pnlShowMarkBySubjectLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(pnlShowMarkBySubjectLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                .addComponent(lblStudentName6)
                                .addComponent(lblStudentName5, javax.swing.GroupLayout.Alignment.TRAILING)
                                .addComponent(lblStudentNameByMark)
                                .addComponent(lblStudentName2, javax.swing.GroupLayout.DEFAULT_SIZE, 142, Short.MAX_VALUE)
                                .addComponent(lblStudentName3, javax.swing.GroupLayout.DEFAULT_SIZE, 142, Short.MAX_VALUE)
                                .addComponent(lblStudentName4, javax.swing.GroupLayout.DEFAULT_SIZE, 142, Short.MAX_VALUE)
                                .addComponent(lblStudentName1))
                            .addComponent(lblStudentName7, javax.swing.GroupLayout.DEFAULT_SIZE, 142, Short.MAX_VALUE)
                            .addComponent(lblStudentName8, javax.swing.GroupLayout.DEFAULT_SIZE, 142, Short.MAX_VALUE)
                            .addComponent(lblStudentName9, javax.swing.GroupLayout.DEFAULT_SIZE, 142, Short.MAX_VALUE)
                            .addComponent(lblStudentName10, javax.swing.GroupLayout.DEFAULT_SIZE, 142, Short.MAX_VALUE))
                        .addGap(18, 18, 18)
                        .addGroup(pnlShowMarkBySubjectLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(lblSemesterI)
                            .addComponent(cbbMarkSemesterIByStudent1, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(cbbMarkSemesterIByStudent2, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(cbbMarkSemesterIByStudent3, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(cbbMarkSemesterIByStudent6, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(cbbMarkSemesterIByStudent7, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(cbbMarkSemesterIByStudent8, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(cbbMarkSemesterIByStudent9, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(cbbMarkSemesterIByStudent10, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(cbbMarkSemesterIByStudent5, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(cbbMarkSemesterIByStudent4, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlShowMarkBySubjectLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(btnFirst)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnPrevious)
                        .addGap(4, 4, 4)
                        .addComponent(btnNext)
                        .addGap(4, 4, 4)))
                .addGroup(pnlShowMarkBySubjectLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlShowMarkBySubjectLayout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btnEnd))
                    .addGroup(pnlShowMarkBySubjectLayout.createSequentialGroup()
                        .addGap(15, 15, 15)
                        .addGroup(pnlShowMarkBySubjectLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(cbbMarkSemesterIIByStudent1, 0, 57, Short.MAX_VALUE)
                            .addComponent(lblSemesterII, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(cbbMarkSemesterIIByStudent2, 0, 57, Short.MAX_VALUE)
                            .addComponent(cbbMarkSemesterIIByStudent3, 0, 57, Short.MAX_VALUE)
                            .addComponent(cbbMarkSemesterIIByStudent4, 0, 57, Short.MAX_VALUE)
                            .addComponent(cbbMarkSemesterIIByStudent5, 0, 57, Short.MAX_VALUE)
                            .addComponent(cbbMarkSemesterIIByStudent6, 0, 57, Short.MAX_VALUE)
                            .addComponent(cbbMarkSemesterIIByStudent7, 0, 57, Short.MAX_VALUE)
                            .addComponent(cbbMarkSemesterIIByStudent8, 0, 57, Short.MAX_VALUE)
                            .addComponent(cbbMarkSemesterIIByStudent9, 0, 57, Short.MAX_VALUE)
                            .addComponent(cbbMarkSemesterIIByStudent10, 0, 57, Short.MAX_VALUE))))
                .addGap(80, 80, 80))
        );
        pnlShowMarkBySubjectLayout.setVerticalGroup(
            pnlShowMarkBySubjectLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlShowMarkBySubjectLayout.createSequentialGroup()
                .addGap(28, 28, 28)
                .addGroup(pnlShowMarkBySubjectLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlShowMarkBySubjectLayout.createSequentialGroup()
                        .addGroup(pnlShowMarkBySubjectLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(pnlShowMarkBySubjectLayout.createSequentialGroup()
                                .addComponent(lblStudentIDByMark)
                                .addGap(18, 18, 18)
                                .addComponent(lblStudentID1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(pnlShowMarkBySubjectLayout.createSequentialGroup()
                                .addComponent(lblStudentNameByMark)
                                .addGap(18, 18, 18)
                                .addComponent(lblStudentName1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addGap(18, 18, 18)
                        .addGroup(pnlShowMarkBySubjectLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lblStudentName2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblStudentID2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(cbbMarkSemesterIByStudent2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(cbbMarkSemesterIIByStudent2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(pnlShowMarkBySubjectLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lblStudentName3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblStudentID3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(cbbMarkSemesterIByStudent3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(cbbMarkSemesterIIByStudent3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(pnlShowMarkBySubjectLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lblStudentName4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblStudentID4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(cbbMarkSemesterIByStudent4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(cbbMarkSemesterIIByStudent4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(pnlShowMarkBySubjectLayout.createSequentialGroup()
                        .addGroup(pnlShowMarkBySubjectLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(pnlShowMarkBySubjectLayout.createSequentialGroup()
                                .addGap(189, 189, 189)
                                .addGroup(pnlShowMarkBySubjectLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(lblStudentName5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(lblStudentID5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(cbbMarkSemesterIByStudent5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(cbbMarkSemesterIIByStudent5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                            .addGroup(pnlShowMarkBySubjectLayout.createSequentialGroup()
                                .addGap(33, 33, 33)
                                .addGroup(pnlShowMarkBySubjectLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(cbbMarkSemesterIByStudent1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(cbbMarkSemesterIIByStudent1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
                        .addGap(18, 18, 18)
                        .addGroup(pnlShowMarkBySubjectLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lblStudentName6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblStudentID6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(cbbMarkSemesterIByStudent6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(cbbMarkSemesterIIByStudent6, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(pnlShowMarkBySubjectLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lblStudentName7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblStudentID7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(cbbMarkSemesterIByStudent7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(cbbMarkSemesterIIByStudent7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(pnlShowMarkBySubjectLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lblStudentName8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblStudentID8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(cbbMarkSemesterIByStudent8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(cbbMarkSemesterIIByStudent8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(pnlShowMarkBySubjectLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lblStudentName9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblStudentID9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(cbbMarkSemesterIByStudent9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(cbbMarkSemesterIIByStudent9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(pnlShowMarkBySubjectLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lblStudentName10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblStudentID10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(cbbMarkSemesterIByStudent10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(cbbMarkSemesterIIByStudent10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(pnlShowMarkBySubjectLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(lblSemesterI)
                        .addComponent(lblSemesterII)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 45, Short.MAX_VALUE)
                .addGroup(pnlShowMarkBySubjectLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnPrevious)
                    .addComponent(btnNext)
                    .addComponent(btnEnd)
                    .addComponent(btnFirst))
                .addContainerGap(51, Short.MAX_VALUE))
        );

        pnlMarkManagerLeftCenter.add(pnlShowMarkBySubject, "card4");

        pnlMarkManagerLeft.add(pnlMarkManagerLeftCenter, java.awt.BorderLayout.CENTER);

        pnlMarkManager.add(pnlMarkManagerLeft, java.awt.BorderLayout.LINE_START);

        pnlMarkManagerRight.setMinimumSize(new java.awt.Dimension(500, 650));
        pnlMarkManagerRight.setPreferredSize(new java.awt.Dimension(500, 650));
        pnlMarkManagerRight.setLayout(new java.awt.BorderLayout());

        pnlMarkManagerRightHeader.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
        pnlMarkManagerRightHeader.setPreferredSize(new java.awt.Dimension(500, 50));

        lblListMarkManager.setFont(new java.awt.Font("Tahoma", 1, 16));
        lblListMarkManager.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        lblListMarkManager.setText("Danh Sách Điểm");
        lblListMarkManager.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);
        lblListMarkManager.setPreferredSize(new java.awt.Dimension(400, 27));

        javax.swing.GroupLayout pnlMarkManagerRightHeaderLayout = new javax.swing.GroupLayout(pnlMarkManagerRightHeader);
        pnlMarkManagerRightHeader.setLayout(pnlMarkManagerRightHeaderLayout);
        pnlMarkManagerRightHeaderLayout.setHorizontalGroup(
            pnlMarkManagerRightHeaderLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 592, Short.MAX_VALUE)
            .addGroup(pnlMarkManagerRightHeaderLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(pnlMarkManagerRightHeaderLayout.createSequentialGroup()
                    .addGap(0, 96, Short.MAX_VALUE)
                    .addComponent(lblListMarkManager, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 96, Short.MAX_VALUE)))
        );
        pnlMarkManagerRightHeaderLayout.setVerticalGroup(
            pnlMarkManagerRightHeaderLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 42, Short.MAX_VALUE)
            .addGroup(pnlMarkManagerRightHeaderLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(pnlMarkManagerRightHeaderLayout.createSequentialGroup()
                    .addGap(0, 7, Short.MAX_VALUE)
                    .addComponent(lblListMarkManager, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 8, Short.MAX_VALUE)))
        );

        pnlMarkManagerRight.add(pnlMarkManagerRightHeader, java.awt.BorderLayout.PAGE_START);

        pnlMarkManagerRightCenter.setPreferredSize(new java.awt.Dimension(500, 610));
        pnlMarkManagerRightCenter.setLayout(new java.awt.BorderLayout());

        pnlMarkManagerRightCenterHeader.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
        pnlMarkManagerRightCenterHeader.setPreferredSize(new java.awt.Dimension(500, 50));

        lblFindByStudentIDNameForMark.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        lblFindByStudentIDNameForMark.setText("Tìm kiếm theo:");
        lblFindByStudentIDNameForMark.setPreferredSize(new java.awt.Dimension(140, 27));
        pnlMarkManagerRightCenterHeader.add(lblFindByStudentIDNameForMark);

        groupButtonFindMark.add(rdByStudent);
        rdByStudent.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        rdByStudent.setSelected(true);
        rdByStudent.setText("Học sinh");
        rdByStudent.setPreferredSize(new java.awt.Dimension(90, 23));
        rdByStudent.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                rdByStudentMouseClicked(evt);
            }
        });
        pnlMarkManagerRightCenterHeader.add(rdByStudent);

        groupButtonFindMark.add(rdBySubject);
        rdBySubject.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        rdBySubject.setText("Môn Học");
        rdBySubject.setPreferredSize(new java.awt.Dimension(90, 23));
        rdBySubject.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                rdBySubjectMouseClicked(evt);
            }
        });
        pnlMarkManagerRightCenterHeader.add(rdBySubject);

        pnlMarkManagerRightCenter.add(pnlMarkManagerRightCenterHeader, java.awt.BorderLayout.PAGE_START);

        pnlMarkManagerRightCenterFooter.setBackground(new java.awt.Color(255, 255, 255));
        pnlMarkManagerRightCenterFooter.setPreferredSize(new java.awt.Dimension(500, 100));
        pnlMarkManagerRightCenterFooter.setLayout(new java.awt.BorderLayout());

        lblLienHe4.setBackground(new java.awt.Color(255, 255, 255));
        lblLienHe4.setFont(new java.awt.Font("Tahoma", 1, 14));
        lblLienHe4.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        lblLienHe4.setText("Liên Hệ: Nguyễn Văn Tính");
        pnlMarkManagerRightCenterFooter.add(lblLienHe4, java.awt.BorderLayout.CENTER);

        pnlMarkManagerRightCenter.add(pnlMarkManagerRightCenterFooter, java.awt.BorderLayout.PAGE_END);

        pnlMarkManagerRightCenterCenter.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
        pnlMarkManagerRightCenterCenter.setPreferredSize(new java.awt.Dimension(500, 400));
        pnlMarkManagerRightCenterCenter.setLayout(new java.awt.BorderLayout());

        pnlHeaderList.setMinimumSize(new java.awt.Dimension(592, 200));
        pnlHeaderList.setPreferredSize(new java.awt.Dimension(592, 200));
        pnlHeaderList.setLayout(new java.awt.BorderLayout());

        jPanel3.setPreferredSize(new java.awt.Dimension(150, 200));
        jPanel3.setLayout(new java.awt.BorderLayout());

        listClassRoomBlockForMark.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" };
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        });
        listClassRoomBlockForMark.setPreferredSize(new java.awt.Dimension(150, 80));
        listClassRoomBlockForMark.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                listClassRoomBlockForMarkMouseClicked(evt);
            }
        });
        jScrollPane4.setViewportView(listClassRoomBlockForMark);

        jPanel3.add(jScrollPane4, java.awt.BorderLayout.CENTER);

        pnlHeaderList.add(jPanel3, java.awt.BorderLayout.LINE_START);

        jPanel1.setPreferredSize(new java.awt.Dimension(250, 200));
        jPanel1.setLayout(new java.awt.BorderLayout());

        listSubjectByClassRoomBlock.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" };
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        });
        listSubjectByClassRoomBlock.setEnabled(false);
        listSubjectByClassRoomBlock.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                listSubjectByClassRoomBlockMouseClicked(evt);
            }
        });
        jScrollPane6.setViewportView(listSubjectByClassRoomBlock);

        jPanel1.add(jScrollPane6, java.awt.BorderLayout.CENTER);

        pnlHeaderList.add(jPanel1, java.awt.BorderLayout.LINE_END);

        jPanel4.setMinimumSize(new java.awt.Dimension(150, 200));
        jPanel4.setPreferredSize(new java.awt.Dimension(150, 200));
        jPanel4.setLayout(new java.awt.BorderLayout());

        jScrollPane3.setPreferredSize(new java.awt.Dimension(150, 19));

        listClassForMark.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" };
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        });
        listClassForMark.setPreferredSize(new java.awt.Dimension(150, 80));
        listClassForMark.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                listClassForMarkMouseClicked(evt);
            }
        });
        jScrollPane3.setViewportView(listClassForMark);

        jPanel4.add(jScrollPane3, java.awt.BorderLayout.CENTER);

        pnlHeaderList.add(jPanel4, java.awt.BorderLayout.CENTER);

        pnlMarkManagerRightCenterCenter.add(pnlHeaderList, java.awt.BorderLayout.PAGE_START);

        jPanel2.setLayout(new java.awt.BorderLayout());

        listStudentForMark.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" };
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        });
        listStudentForMark.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                listStudentForMarkMouseClicked(evt);
            }
        });
        jScrollPane5.setViewportView(listStudentForMark);

        jPanel2.add(jScrollPane5, java.awt.BorderLayout.CENTER);

        pnlMarkManagerRightCenterCenter.add(jPanel2, java.awt.BorderLayout.CENTER);

        pnlMarkManagerRightCenter.add(pnlMarkManagerRightCenterCenter, java.awt.BorderLayout.CENTER);

        pnlMarkManagerRight.add(pnlMarkManagerRightCenter, java.awt.BorderLayout.CENTER);

        pnlMarkManager.add(pnlMarkManagerRight, java.awt.BorderLayout.CENTER);

        pnlCenter.add(pnlMarkManager, "card6");

        pnlClassRoomBlockManager.setPreferredSize(new java.awt.Dimension(1000, 650));
        pnlClassRoomBlockManager.setLayout(new java.awt.BorderLayout());

        pnlClassRoomBlockManagerLeft.setPreferredSize(new java.awt.Dimension(500, 650));
        pnlClassRoomBlockManagerLeft.setLayout(new java.awt.BorderLayout());

        pnlClassRoomBlockManagerLeftHeader.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
        pnlClassRoomBlockManagerLeftHeader.setMinimumSize(new java.awt.Dimension(500, 50));
        pnlClassRoomBlockManagerLeftHeader.setPreferredSize(new java.awt.Dimension(500, 50));

        lblClassRoomBlockManager.setFont(new java.awt.Font("Tahoma", 0, 18));
        lblClassRoomBlockManager.setText("THÔNG TIN VỀ KHỐI HỌC");
        pnlClassRoomBlockManagerLeftHeader.add(lblClassRoomBlockManager);

        pnlClassRoomBlockManagerLeft.add(pnlClassRoomBlockManagerLeftHeader, java.awt.BorderLayout.PAGE_START);

        pnlClassRoomBlockManagerLeftFooter.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
        pnlClassRoomBlockManagerLeftFooter.setMinimumSize(new java.awt.Dimension(500, 50));
        pnlClassRoomBlockManagerLeftFooter.setPreferredSize(new java.awt.Dimension(500, 60));

        btnAddClassRoomBlock.setFont(new java.awt.Font("Tahoma", 1, 12));
        btnAddClassRoomBlock.setText("Cho phép THÊM khối học");
        btnAddClassRoomBlock.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnAddClassRoomBlockActionPerformed(evt);
            }
        });
        pnlClassRoomBlockManagerLeftFooter.add(btnAddClassRoomBlock);

        btnEditClassRoomBlock.setFont(new java.awt.Font("Tahoma", 1, 12));
        btnEditClassRoomBlock.setText("Cho phép SỬA khối học");
        btnEditClassRoomBlock.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnEditClassRoomBlockActionPerformed(evt);
            }
        });
        pnlClassRoomBlockManagerLeftFooter.add(btnEditClassRoomBlock);

        btnDeleteClassRoomBlock.setFont(new java.awt.Font("Tahoma", 1, 12));
        btnDeleteClassRoomBlock.setText("XÓA");
        btnDeleteClassRoomBlock.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnDeleteClassRoomBlockActionPerformed(evt);
            }
        });
        pnlClassRoomBlockManagerLeftFooter.add(btnDeleteClassRoomBlock);

        pnlClassRoomBlockManagerLeft.add(pnlClassRoomBlockManagerLeftFooter, java.awt.BorderLayout.PAGE_END);

        pnlClassRoomBlockManagerLeftCenter.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
        pnlClassRoomBlockManagerLeftCenter.setPreferredSize(new java.awt.Dimension(500, 530));

        lblClassRoomBlockNameForClassRoomBlock.setFont(new java.awt.Font("Tahoma", 1, 11));
        lblClassRoomBlockNameForClassRoomBlock.setText("Tên Khối Học:");

        javax.swing.GroupLayout pnlClassRoomBlockManagerLeftCenterLayout = new javax.swing.GroupLayout(pnlClassRoomBlockManagerLeftCenter);
        pnlClassRoomBlockManagerLeftCenter.setLayout(pnlClassRoomBlockManagerLeftCenterLayout);
        pnlClassRoomBlockManagerLeftCenterLayout.setHorizontalGroup(
            pnlClassRoomBlockManagerLeftCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlClassRoomBlockManagerLeftCenterLayout.createSequentialGroup()
                .addGap(46, 46, 46)
                .addComponent(lblClassRoomBlockNameForClassRoomBlock)
                .addGap(68, 68, 68)
                .addComponent(txtClassRoomBlockNameForClassRoomBlock, javax.swing.GroupLayout.DEFAULT_SIZE, 174, Short.MAX_VALUE)
                .addGap(129, 129, 129))
        );
        pnlClassRoomBlockManagerLeftCenterLayout.setVerticalGroup(
            pnlClassRoomBlockManagerLeftCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlClassRoomBlockManagerLeftCenterLayout.createSequentialGroup()
                .addGap(52, 52, 52)
                .addGroup(pnlClassRoomBlockManagerLeftCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(txtClassRoomBlockNameForClassRoomBlock, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblClassRoomBlockNameForClassRoomBlock))
                .addContainerGap(450, Short.MAX_VALUE))
        );

        pnlClassRoomBlockManagerLeft.add(pnlClassRoomBlockManagerLeftCenter, java.awt.BorderLayout.CENTER);

        pnlClassRoomBlockManager.add(pnlClassRoomBlockManagerLeft, java.awt.BorderLayout.LINE_START);

        pnlClassRoomBlockManagerRight.setPreferredSize(new java.awt.Dimension(500, 650));
        pnlClassRoomBlockManagerRight.setLayout(new java.awt.BorderLayout());

        pnlClassRoomBlockManagerRightHeader.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
        pnlClassRoomBlockManagerRightHeader.setPreferredSize(new java.awt.Dimension(500, 50));

        lblListClassRoomBlockManager.setFont(new java.awt.Font("Tahoma", 1, 16));
        lblListClassRoomBlockManager.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        lblListClassRoomBlockManager.setText("Danh Sách Khối Học");
        lblListClassRoomBlockManager.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);
        lblListClassRoomBlockManager.setPreferredSize(new java.awt.Dimension(400, 27));

        javax.swing.GroupLayout pnlClassRoomBlockManagerRightHeaderLayout = new javax.swing.GroupLayout(pnlClassRoomBlockManagerRightHeader);
        pnlClassRoomBlockManagerRightHeader.setLayout(pnlClassRoomBlockManagerRightHeaderLayout);
        pnlClassRoomBlockManagerRightHeaderLayout.setHorizontalGroup(
            pnlClassRoomBlockManagerRightHeaderLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 592, Short.MAX_VALUE)
            .addGroup(pnlClassRoomBlockManagerRightHeaderLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(pnlClassRoomBlockManagerRightHeaderLayout.createSequentialGroup()
                    .addGap(0, 96, Short.MAX_VALUE)
                    .addComponent(lblListClassRoomBlockManager, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 96, Short.MAX_VALUE)))
        );
        pnlClassRoomBlockManagerRightHeaderLayout.setVerticalGroup(
            pnlClassRoomBlockManagerRightHeaderLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 42, Short.MAX_VALUE)
            .addGroup(pnlClassRoomBlockManagerRightHeaderLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(pnlClassRoomBlockManagerRightHeaderLayout.createSequentialGroup()
                    .addGap(0, 7, Short.MAX_VALUE)
                    .addComponent(lblListClassRoomBlockManager, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 8, Short.MAX_VALUE)))
        );

        pnlClassRoomBlockManagerRight.add(pnlClassRoomBlockManagerRightHeader, java.awt.BorderLayout.PAGE_START);

        pnlClassRoomBlockManagerRightCenter.setPreferredSize(new java.awt.Dimension(500, 610));
        pnlClassRoomBlockManagerRightCenter.setLayout(new java.awt.BorderLayout());

        pnlClassRoomBlockManagerRightCenterHeader.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
        pnlClassRoomBlockManagerRightCenterHeader.setPreferredSize(new java.awt.Dimension(500, 50));

        lblFindByNameClassRoomBlock.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblFindByNameClassRoomBlock.setText("Tìm kiếm theo tên Khối học: ");
        lblFindByNameClassRoomBlock.setPreferredSize(new java.awt.Dimension(170, 27));
        pnlClassRoomBlockManagerRightCenterHeader.add(lblFindByNameClassRoomBlock);

        txtFindByNameClassRoomBlock.setFont(new java.awt.Font("Tahoma", 0, 12));
        txtFindByNameClassRoomBlock.setPreferredSize(new java.awt.Dimension(120, 23));
        pnlClassRoomBlockManagerRightCenterHeader.add(txtFindByNameClassRoomBlock);

        btnFindByNameClassRoomBlock.setFont(new java.awt.Font("Tahoma", 0, 12));
        btnFindByNameClassRoomBlock.setText("Tìm Kiếm");
        btnFindByNameClassRoomBlock.setPreferredSize(new java.awt.Dimension(100, 27));
        pnlClassRoomBlockManagerRightCenterHeader.add(btnFindByNameClassRoomBlock);

        pnlClassRoomBlockManagerRightCenter.add(pnlClassRoomBlockManagerRightCenterHeader, java.awt.BorderLayout.PAGE_START);

        pnlClassRoomBlockManagerRightCenterFooter.setBackground(new java.awt.Color(255, 255, 255));
        pnlClassRoomBlockManagerRightCenterFooter.setPreferredSize(new java.awt.Dimension(500, 100));
        pnlClassRoomBlockManagerRightCenterFooter.setLayout(new java.awt.BorderLayout());

        lblLienHe5.setBackground(new java.awt.Color(255, 255, 255));
        lblLienHe5.setFont(new java.awt.Font("Tahoma", 1, 14));
        lblLienHe5.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        lblLienHe5.setText("Liên Hệ: Nguyễn Văn Tính");
        pnlClassRoomBlockManagerRightCenterFooter.add(lblLienHe5, java.awt.BorderLayout.CENTER);

        pnlClassRoomBlockManagerRightCenter.add(pnlClassRoomBlockManagerRightCenterFooter, java.awt.BorderLayout.PAGE_END);

        pnlClassRoomBlockManagerRightCenterCenter.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
        pnlClassRoomBlockManagerRightCenterCenter.setPreferredSize(new java.awt.Dimension(500, 400));
        pnlClassRoomBlockManagerRightCenterCenter.setLayout(new java.awt.BorderLayout());

        listClassRoomBlockManager.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" };
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        });
        listClassRoomBlockManager.addListSelectionListener(new javax.swing.event.ListSelectionListener() {
            public void valueChanged(javax.swing.event.ListSelectionEvent evt) {
                listClassRoomBlockManagerValueChanged(evt);
            }
        });
        jsPaneClassRoomBlockManager.setViewportView(listClassRoomBlockManager);

        pnlClassRoomBlockManagerRightCenterCenter.add(jsPaneClassRoomBlockManager, java.awt.BorderLayout.CENTER);

        pnlClassRoomBlockManagerRightCenter.add(pnlClassRoomBlockManagerRightCenterCenter, java.awt.BorderLayout.CENTER);

        pnlClassRoomBlockManagerRight.add(pnlClassRoomBlockManagerRightCenter, java.awt.BorderLayout.CENTER);

        pnlClassRoomBlockManager.add(pnlClassRoomBlockManagerRight, java.awt.BorderLayout.CENTER);

        pnlCenter.add(pnlClassRoomBlockManager, "card8");

        pnlProvinceManager.setPreferredSize(new java.awt.Dimension(1000, 650));
        pnlProvinceManager.setLayout(new java.awt.BorderLayout());

        pnlProvinceManagerLeft.setMinimumSize(new java.awt.Dimension(500, 650));
        pnlProvinceManagerLeft.setPreferredSize(new java.awt.Dimension(500, 650));
        pnlProvinceManagerLeft.setLayout(new java.awt.BorderLayout());

        pnlProvinceManagerLeftHeader.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
        pnlProvinceManagerLeftHeader.setMinimumSize(new java.awt.Dimension(500, 50));
        pnlProvinceManagerLeftHeader.setPreferredSize(new java.awt.Dimension(500, 50));

        lblProvinceManager.setFont(new java.awt.Font("Tahoma", 0, 18));
        lblProvinceManager.setText("THÔNG TIN VỀ TỈNH THÀNH");
        pnlProvinceManagerLeftHeader.add(lblProvinceManager);

        pnlProvinceManagerLeft.add(pnlProvinceManagerLeftHeader, java.awt.BorderLayout.PAGE_START);

        pnlProvinceManagerLeftFooter.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
        pnlProvinceManagerLeftFooter.setMinimumSize(new java.awt.Dimension(500, 50));
        pnlProvinceManagerLeftFooter.setPreferredSize(new java.awt.Dimension(500, 60));

        btnAddProvince.setFont(new java.awt.Font("Tahoma", 1, 12));
        btnAddProvince.setText("Cho phép THÊM Tỉnh Thành");
        btnAddProvince.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnAddProvinceActionPerformed(evt);
            }
        });
        pnlProvinceManagerLeftFooter.add(btnAddProvince);

        btnEditProvince.setFont(new java.awt.Font("Tahoma", 1, 12));
        btnEditProvince.setText("Cho phép SỬA Tỉnh Thành");
        btnEditProvince.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnEditProvinceActionPerformed(evt);
            }
        });
        pnlProvinceManagerLeftFooter.add(btnEditProvince);

        btnDeleteProvince.setFont(new java.awt.Font("Tahoma", 1, 12));
        btnDeleteProvince.setText("XÓA");
        btnDeleteProvince.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnDeleteProvinceActionPerformed(evt);
            }
        });
        pnlProvinceManagerLeftFooter.add(btnDeleteProvince);

        pnlProvinceManagerLeft.add(pnlProvinceManagerLeftFooter, java.awt.BorderLayout.PAGE_END);

        pnlProvinceManagerLeftCenter.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
        pnlProvinceManagerLeftCenter.setPreferredSize(new java.awt.Dimension(500, 530));

        lblProvinceIDForProvince.setFont(new java.awt.Font("Tahoma", 1, 11));
        lblProvinceIDForProvince.setText("Mã Tỉnh Thành:");

        lblProvinceNameForProvince.setFont(new java.awt.Font("Tahoma", 1, 11));
        lblProvinceNameForProvince.setText("Tên Tỉnh Thành:");

        javax.swing.GroupLayout pnlProvinceManagerLeftCenterLayout = new javax.swing.GroupLayout(pnlProvinceManagerLeftCenter);
        pnlProvinceManagerLeftCenter.setLayout(pnlProvinceManagerLeftCenterLayout);
        pnlProvinceManagerLeftCenterLayout.setHorizontalGroup(
            pnlProvinceManagerLeftCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlProvinceManagerLeftCenterLayout.createSequentialGroup()
                .addGap(46, 46, 46)
                .addGroup(pnlProvinceManagerLeftCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblProvinceIDForProvince)
                    .addComponent(lblProvinceNameForProvince))
                .addGap(68, 68, 68)
                .addGroup(pnlProvinceManagerLeftCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(txtProvinceNameForProvince, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 160, Short.MAX_VALUE)
                    .addComponent(txtProvinceIDForProvince, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 160, Short.MAX_VALUE))
                .addGap(129, 129, 129))
        );
        pnlProvinceManagerLeftCenterLayout.setVerticalGroup(
            pnlProvinceManagerLeftCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlProvinceManagerLeftCenterLayout.createSequentialGroup()
                .addGap(52, 52, 52)
                .addGroup(pnlProvinceManagerLeftCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(txtProvinceIDForProvince, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblProvinceIDForProvince))
                .addGap(32, 32, 32)
                .addGroup(pnlProvinceManagerLeftCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(txtProvinceNameForProvince, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblProvinceNameForProvince))
                .addContainerGap(398, Short.MAX_VALUE))
        );

        pnlProvinceManagerLeft.add(pnlProvinceManagerLeftCenter, java.awt.BorderLayout.CENTER);

        pnlProvinceManager.add(pnlProvinceManagerLeft, java.awt.BorderLayout.LINE_START);

        pnlProvinceManagerRight.setPreferredSize(new java.awt.Dimension(500, 650));
        pnlProvinceManagerRight.setLayout(new java.awt.BorderLayout());

        pnlProvinceManagerRightHeader.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
        pnlProvinceManagerRightHeader.setPreferredSize(new java.awt.Dimension(500, 50));

        lblListProvinceManager.setFont(new java.awt.Font("Tahoma", 1, 16));
        lblListProvinceManager.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        lblListProvinceManager.setText("Danh Sách Tỉnh Thành");
        lblListProvinceManager.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);
        lblListProvinceManager.setPreferredSize(new java.awt.Dimension(400, 27));

        javax.swing.GroupLayout pnlProvinceManagerRightHeaderLayout = new javax.swing.GroupLayout(pnlProvinceManagerRightHeader);
        pnlProvinceManagerRightHeader.setLayout(pnlProvinceManagerRightHeaderLayout);
        pnlProvinceManagerRightHeaderLayout.setHorizontalGroup(
            pnlProvinceManagerRightHeaderLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 592, Short.MAX_VALUE)
            .addGroup(pnlProvinceManagerRightHeaderLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(pnlProvinceManagerRightHeaderLayout.createSequentialGroup()
                    .addGap(0, 96, Short.MAX_VALUE)
                    .addComponent(lblListProvinceManager, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 96, Short.MAX_VALUE)))
        );
        pnlProvinceManagerRightHeaderLayout.setVerticalGroup(
            pnlProvinceManagerRightHeaderLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 42, Short.MAX_VALUE)
            .addGroup(pnlProvinceManagerRightHeaderLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(pnlProvinceManagerRightHeaderLayout.createSequentialGroup()
                    .addGap(0, 7, Short.MAX_VALUE)
                    .addComponent(lblListProvinceManager, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 8, Short.MAX_VALUE)))
        );

        pnlProvinceManagerRight.add(pnlProvinceManagerRightHeader, java.awt.BorderLayout.PAGE_START);

        pnlProvinceManagerRightCenter.setPreferredSize(new java.awt.Dimension(500, 610));
        pnlProvinceManagerRightCenter.setLayout(new java.awt.BorderLayout());

        pnlProvinceManagerRightCenterHeader.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
        pnlProvinceManagerRightCenterHeader.setPreferredSize(new java.awt.Dimension(500, 50));

        lblFindByNameProvince.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblFindByNameProvince.setText("Tìm kiếm theo tên Tỉnh Thành:");
        lblFindByNameProvince.setPreferredSize(new java.awt.Dimension(190, 27));
        pnlProvinceManagerRightCenterHeader.add(lblFindByNameProvince);

        txtFindByNameProvince.setFont(new java.awt.Font("Tahoma", 0, 12));
        txtFindByNameProvince.setPreferredSize(new java.awt.Dimension(120, 23));
        pnlProvinceManagerRightCenterHeader.add(txtFindByNameProvince);

        btnFindByNameProvince.setFont(new java.awt.Font("Tahoma", 0, 12));
        btnFindByNameProvince.setText("Tìm Kiếm");
        btnFindByNameProvince.setPreferredSize(new java.awt.Dimension(100, 27));
        btnFindByNameProvince.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnFindByNameProvinceActionPerformed(evt);
            }
        });
        pnlProvinceManagerRightCenterHeader.add(btnFindByNameProvince);

        pnlProvinceManagerRightCenter.add(pnlProvinceManagerRightCenterHeader, java.awt.BorderLayout.PAGE_START);

        pnProvinceManagerRightCenterFooter.setBackground(new java.awt.Color(255, 255, 255));
        pnProvinceManagerRightCenterFooter.setPreferredSize(new java.awt.Dimension(500, 100));
        pnProvinceManagerRightCenterFooter.setLayout(new java.awt.BorderLayout());

        lblLienHe6.setBackground(new java.awt.Color(255, 255, 255));
        lblLienHe6.setFont(new java.awt.Font("Tahoma", 1, 14));
        lblLienHe6.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        lblLienHe6.setText("Liên Hệ: Nguyễn Văn Tính");
        pnProvinceManagerRightCenterFooter.add(lblLienHe6, java.awt.BorderLayout.CENTER);

        pnlProvinceManagerRightCenter.add(pnProvinceManagerRightCenterFooter, java.awt.BorderLayout.PAGE_END);

        pnlProvinceManagerRightCenterCenter.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
        pnlProvinceManagerRightCenterCenter.setPreferredSize(new java.awt.Dimension(500, 400));
        pnlProvinceManagerRightCenterCenter.setLayout(new java.awt.BorderLayout());

        listProvinceManager.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" };
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        });
        listProvinceManager.addListSelectionListener(new javax.swing.event.ListSelectionListener() {
            public void valueChanged(javax.swing.event.ListSelectionEvent evt) {
                listProvinceManagerValueChanged(evt);
            }
        });
        jsPaneProvinceManager.setViewportView(listProvinceManager);

        pnlProvinceManagerRightCenterCenter.add(jsPaneProvinceManager, java.awt.BorderLayout.CENTER);

        pnlProvinceManagerRightCenter.add(pnlProvinceManagerRightCenterCenter, java.awt.BorderLayout.CENTER);

        pnlProvinceManagerRight.add(pnlProvinceManagerRightCenter, java.awt.BorderLayout.CENTER);

        pnlProvinceManager.add(pnlProvinceManagerRight, java.awt.BorderLayout.CENTER);

        pnlCenter.add(pnlProvinceManager, "card9");

        pnlSemesterManager.setLayout(new java.awt.BorderLayout());

        pnlSemesterManagerLeft.setPreferredSize(new java.awt.Dimension(500, 650));
        pnlSemesterManagerLeft.setLayout(new java.awt.BorderLayout());

        pnlSemesterManagerLeftHeader.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
        pnlSemesterManagerLeftHeader.setMinimumSize(new java.awt.Dimension(500, 50));
        pnlSemesterManagerLeftHeader.setPreferredSize(new java.awt.Dimension(500, 50));

        lblSemesterManager.setFont(new java.awt.Font("Tahoma", 0, 18));
        lblSemesterManager.setText("THÔNG TIN VỀ HỌC KỲ");
        pnlSemesterManagerLeftHeader.add(lblSemesterManager);

        pnlSemesterManagerLeft.add(pnlSemesterManagerLeftHeader, java.awt.BorderLayout.PAGE_START);

        pnlSemesterManagerLeftFooter.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
        pnlSemesterManagerLeftFooter.setMinimumSize(new java.awt.Dimension(500, 50));
        pnlSemesterManagerLeftFooter.setPreferredSize(new java.awt.Dimension(500, 60));

        btnAddSemester.setFont(new java.awt.Font("Tahoma", 1, 12));
        btnAddSemester.setText("Cho phép THÊM học kỳ");
        btnAddSemester.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnAddSemesterActionPerformed(evt);
            }
        });
        pnlSemesterManagerLeftFooter.add(btnAddSemester);

        btnEditSemester.setFont(new java.awt.Font("Tahoma", 1, 12));
        btnEditSemester.setText("Cho phép SỬA học kỳ");
        btnEditSemester.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnEditSemesterActionPerformed(evt);
            }
        });
        pnlSemesterManagerLeftFooter.add(btnEditSemester);

        btnDeleteSemester.setFont(new java.awt.Font("Tahoma", 1, 12));
        btnDeleteSemester.setText("XÓA");
        btnDeleteSemester.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnDeleteSemesterActionPerformed(evt);
            }
        });
        pnlSemesterManagerLeftFooter.add(btnDeleteSemester);

        pnlSemesterManagerLeft.add(pnlSemesterManagerLeftFooter, java.awt.BorderLayout.PAGE_END);

        pnlSemesterManagerLeftCenter.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
        pnlSemesterManagerLeftCenter.setPreferredSize(new java.awt.Dimension(500, 530));

        lblSemesterNameForSemester.setFont(new java.awt.Font("Tahoma", 1, 11));
        lblSemesterNameForSemester.setText("Tên Học Kỳ:");

        javax.swing.GroupLayout pnlSemesterManagerLeftCenterLayout = new javax.swing.GroupLayout(pnlSemesterManagerLeftCenter);
        pnlSemesterManagerLeftCenter.setLayout(pnlSemesterManagerLeftCenterLayout);
        pnlSemesterManagerLeftCenterLayout.setHorizontalGroup(
            pnlSemesterManagerLeftCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlSemesterManagerLeftCenterLayout.createSequentialGroup()
                .addGap(46, 46, 46)
                .addComponent(lblSemesterNameForSemester)
                .addGap(68, 68, 68)
                .addComponent(txtSemesterNameForSemester, javax.swing.GroupLayout.DEFAULT_SIZE, 170, Short.MAX_VALUE)
                .addGap(143, 143, 143))
        );
        pnlSemesterManagerLeftCenterLayout.setVerticalGroup(
            pnlSemesterManagerLeftCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlSemesterManagerLeftCenterLayout.createSequentialGroup()
                .addGap(52, 52, 52)
                .addGroup(pnlSemesterManagerLeftCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(txtSemesterNameForSemester, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblSemesterNameForSemester))
                .addContainerGap(450, Short.MAX_VALUE))
        );

        pnlSemesterManagerLeft.add(pnlSemesterManagerLeftCenter, java.awt.BorderLayout.CENTER);

        pnlSemesterManager.add(pnlSemesterManagerLeft, java.awt.BorderLayout.LINE_START);

        pnlSemesterManagerRight.setPreferredSize(new java.awt.Dimension(500, 650));
        pnlSemesterManagerRight.setLayout(new java.awt.BorderLayout());

        pnlSemesterManagerRightHeader.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
        pnlSemesterManagerRightHeader.setPreferredSize(new java.awt.Dimension(500, 50));

        lblListSemesterManager.setFont(new java.awt.Font("Tahoma", 1, 16));
        lblListSemesterManager.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        lblListSemesterManager.setText("Danh Sách Học Kỳ");
        lblListSemesterManager.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);
        lblListSemesterManager.setPreferredSize(new java.awt.Dimension(400, 27));

        javax.swing.GroupLayout pnlSemesterManagerRightHeaderLayout = new javax.swing.GroupLayout(pnlSemesterManagerRightHeader);
        pnlSemesterManagerRightHeader.setLayout(pnlSemesterManagerRightHeaderLayout);
        pnlSemesterManagerRightHeaderLayout.setHorizontalGroup(
            pnlSemesterManagerRightHeaderLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 592, Short.MAX_VALUE)
            .addGroup(pnlSemesterManagerRightHeaderLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(pnlSemesterManagerRightHeaderLayout.createSequentialGroup()
                    .addGap(0, 96, Short.MAX_VALUE)
                    .addComponent(lblListSemesterManager, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 96, Short.MAX_VALUE)))
        );
        pnlSemesterManagerRightHeaderLayout.setVerticalGroup(
            pnlSemesterManagerRightHeaderLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 42, Short.MAX_VALUE)
            .addGroup(pnlSemesterManagerRightHeaderLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(pnlSemesterManagerRightHeaderLayout.createSequentialGroup()
                    .addGap(0, 7, Short.MAX_VALUE)
                    .addComponent(lblListSemesterManager, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 8, Short.MAX_VALUE)))
        );

        pnlSemesterManagerRight.add(pnlSemesterManagerRightHeader, java.awt.BorderLayout.PAGE_START);

        pnlSemesterManagerRightCenter.setPreferredSize(new java.awt.Dimension(500, 610));
        pnlSemesterManagerRightCenter.setLayout(new java.awt.BorderLayout());

        pnlSemesterManagerRightCenterHeader.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
        pnlSemesterManagerRightCenterHeader.setPreferredSize(new java.awt.Dimension(500, 50));

        lblFindByNameSemester.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblFindByNameSemester.setText("Tìm kiếm theo tên Học Kỳ: ");
        lblFindByNameSemester.setPreferredSize(new java.awt.Dimension(170, 27));
        pnlSemesterManagerRightCenterHeader.add(lblFindByNameSemester);

        txtFindByNameSemester.setFont(new java.awt.Font("Tahoma", 0, 12));
        txtFindByNameSemester.setPreferredSize(new java.awt.Dimension(120, 23));
        pnlSemesterManagerRightCenterHeader.add(txtFindByNameSemester);

        btnFindByNameSemester.setFont(new java.awt.Font("Tahoma", 0, 12));
        btnFindByNameSemester.setText("Tìm Kiếm");
        btnFindByNameSemester.setPreferredSize(new java.awt.Dimension(100, 27));
        pnlSemesterManagerRightCenterHeader.add(btnFindByNameSemester);

        pnlSemesterManagerRightCenter.add(pnlSemesterManagerRightCenterHeader, java.awt.BorderLayout.PAGE_START);

        pnlSemesterManagerRightCenterFooter.setBackground(new java.awt.Color(255, 255, 255));
        pnlSemesterManagerRightCenterFooter.setPreferredSize(new java.awt.Dimension(500, 100));
        pnlSemesterManagerRightCenterFooter.setLayout(new java.awt.BorderLayout());

        lblLienHe7.setBackground(new java.awt.Color(255, 255, 255));
        lblLienHe7.setFont(new java.awt.Font("Tahoma", 1, 14));
        lblLienHe7.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        lblLienHe7.setText("Liên Hệ: Nguyễn Văn Tính");
        pnlSemesterManagerRightCenterFooter.add(lblLienHe7, java.awt.BorderLayout.CENTER);

        pnlSemesterManagerRightCenter.add(pnlSemesterManagerRightCenterFooter, java.awt.BorderLayout.PAGE_END);

        pnlSemesterManagerRightCenterCenter.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
        pnlSemesterManagerRightCenterCenter.setPreferredSize(new java.awt.Dimension(500, 400));
        pnlSemesterManagerRightCenterCenter.setLayout(new java.awt.BorderLayout());

        listSemesterManager.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" };
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        });
        listSemesterManager.addListSelectionListener(new javax.swing.event.ListSelectionListener() {
            public void valueChanged(javax.swing.event.ListSelectionEvent evt) {
                listSemesterManagerValueChanged(evt);
            }
        });
        jsPaneSemesterManager.setViewportView(listSemesterManager);

        pnlSemesterManagerRightCenterCenter.add(jsPaneSemesterManager, java.awt.BorderLayout.CENTER);

        pnlSemesterManagerRightCenter.add(pnlSemesterManagerRightCenterCenter, java.awt.BorderLayout.CENTER);

        pnlSemesterManagerRight.add(pnlSemesterManagerRightCenter, java.awt.BorderLayout.CENTER);

        pnlSemesterManager.add(pnlSemesterManagerRight, java.awt.BorderLayout.CENTER);

        pnlCenter.add(pnlSemesterManager, "card10");

        pnlStatisticByStudent.setPreferredSize(new java.awt.Dimension(1100, 600));
        pnlStatisticByStudent.setLayout(new java.awt.BorderLayout());

        pnlHeaderByStudent.setBackground(new java.awt.Color(204, 204, 204));
        pnlHeaderByStudent.setBorder(javax.swing.BorderFactory.createTitledBorder("Tìm kiếm"));
        pnlHeaderByStudent.setPreferredSize(new java.awt.Dimension(1100, 80));

        lblStatiticsByStudent.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblStatiticsByStudent.setText("Nhập mã học sinh:");
        lblStatiticsByStudent.setPreferredSize(new java.awt.Dimension(120, 15));
        pnlHeaderByStudent.add(lblStatiticsByStudent);

        cbbClassByStudent.setFont(new java.awt.Font("Tahoma", 0, 12));
        cbbClassByStudent.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
        cbbClassByStudent.setPreferredSize(new java.awt.Dimension(100, 22));
        cbbClassByStudent.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                cbbClassByStudentItemStateChanged(evt);
            }
        });
        pnlHeaderByStudent.add(cbbClassByStudent);

        cbbStudentByStudent.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
        cbbStudentByStudent.setPreferredSize(new java.awt.Dimension(150, 22));
        pnlHeaderByStudent.add(cbbStudentByStudent);

        cbbCriteriaByStudent.setFont(new java.awt.Font("Tahoma", 0, 12));
        cbbCriteriaByStudent.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
        cbbCriteriaByStudent.setMinimumSize(new java.awt.Dimension(170, 22));
        cbbCriteriaByStudent.setPreferredSize(new java.awt.Dimension(170, 22));
        pnlHeaderByStudent.add(cbbCriteriaByStudent);

        btnFindResultOfStudentByStudent.setFont(new java.awt.Font("Tahoma", 1, 12));
        btnFindResultOfStudentByStudent.setText("Tìm");
        btnFindResultOfStudentByStudent.setPreferredSize(new java.awt.Dimension(100, 25));
        btnFindResultOfStudentByStudent.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnFindResultOfStudentByStudentActionPerformed(evt);
            }
        });
        pnlHeaderByStudent.add(btnFindResultOfStudentByStudent);

        pnlStatisticByStudent.add(pnlHeaderByStudent, java.awt.BorderLayout.PAGE_START);

        pnlFooterByStudent.setPreferredSize(new java.awt.Dimension(1100, 40));

        btnToPrintByStudent.setFont(new java.awt.Font("Tahoma", 0, 12));
        btnToPrintByStudent.setText("Xuất dữ liệu ra Excel");
        btnToPrintByStudent.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnToPrintByStudentActionPerformed(evt);
            }
        });
        pnlFooterByStudent.add(btnToPrintByStudent);

        pnlStatisticByStudent.add(pnlFooterByStudent, java.awt.BorderLayout.PAGE_END);

        pnlCenterByStudent.setBackground(new java.awt.Color(204, 204, 255));
        pnlCenterByStudent.setBorder(javax.swing.BorderFactory.createTitledBorder("Kết quả"));
        pnlCenterByStudent.setPreferredSize(new java.awt.Dimension(1100, 470));
        pnlCenterByStudent.setLayout(new java.awt.CardLayout());

        pnlCurrentYearByStudent.setBackground(new java.awt.Color(153, 204, 255));
        pnlCurrentYearByStudent.setPreferredSize(new java.awt.Dimension(1084, 450));
        pnlCurrentYearByStudent.setLayout(new java.awt.BorderLayout());

        pnlCurrentYearByStudentHeader.setBackground(new java.awt.Color(204, 204, 204));
        pnlCurrentYearByStudentHeader.setBorder(javax.swing.BorderFactory.createTitledBorder("Thông tin về Học Sinh"));
        pnlCurrentYearByStudentHeader.setPreferredSize(new java.awt.Dimension(1084, 160));

        lblClassNameByCurrentYear.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblClassNameByCurrentYear.setText("Lớp quản lý:");

        lblResultForClassNameCurrentYear.setFont(new java.awt.Font("Tahoma", 1, 12));
        lblResultForClassNameCurrentYear.setForeground(new java.awt.Color(255, 0, 0));
        lblResultForClassNameCurrentYear.setText("jLabel2");

        lblResultForStudentIDCurrentYear.setFont(new java.awt.Font("Tahoma", 1, 12));
        lblResultForStudentIDCurrentYear.setForeground(new java.awt.Color(255, 0, 0));
        lblResultForStudentIDCurrentYear.setText("jLabel2");

        lblStudentIDByCurrentYear.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblStudentIDByCurrentYear.setText("Mã học sinh:");

        lblResultForStudentNameCurrentYear.setFont(new java.awt.Font("Tahoma", 1, 12));
        lblResultForStudentNameCurrentYear.setForeground(new java.awt.Color(255, 0, 0));
        lblResultForStudentNameCurrentYear.setText("jLabel2");

        lblStudentNameByCurrentYear.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblStudentNameByCurrentYear.setText("Họ tên:");

        lblStudentGenderByCurrentYear.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblStudentGenderByCurrentYear.setText("Giới tính:");

        lblResultForGenderCurrentYear.setFont(new java.awt.Font("Tahoma", 1, 12));
        lblResultForGenderCurrentYear.setForeground(new java.awt.Color(255, 0, 0));
        lblResultForGenderCurrentYear.setText("jLabel2");

        lblResultForBirthdayCurrentYear.setFont(new java.awt.Font("Tahoma", 1, 12));
        lblResultForBirthdayCurrentYear.setForeground(new java.awt.Color(255, 0, 0));
        lblResultForBirthdayCurrentYear.setText("jLabel2");

        lblStudentBirthdayByCurrentYear.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblStudentBirthdayByCurrentYear.setText("Ngày sinh:");

        javax.swing.GroupLayout pnlCurrentYearByStudentHeaderLayout = new javax.swing.GroupLayout(pnlCurrentYearByStudentHeader);
        pnlCurrentYearByStudentHeader.setLayout(pnlCurrentYearByStudentHeaderLayout);
        pnlCurrentYearByStudentHeaderLayout.setHorizontalGroup(
            pnlCurrentYearByStudentHeaderLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlCurrentYearByStudentHeaderLayout.createSequentialGroup()
                .addGap(32, 32, 32)
                .addGroup(pnlCurrentYearByStudentHeaderLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblStudentNameByCurrentYear)
                    .addComponent(lblStudentGenderByCurrentYear)
                    .addComponent(lblStudentBirthdayByCurrentYear))
                .addGap(35, 35, 35)
                .addGroup(pnlCurrentYearByStudentHeaderLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlCurrentYearByStudentHeaderLayout.createSequentialGroup()
                        .addGroup(pnlCurrentYearByStudentHeaderLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(lblResultForStudentNameCurrentYear)
                            .addComponent(lblResultForGenderCurrentYear))
                        .addGap(157, 157, 157)
                        .addGroup(pnlCurrentYearByStudentHeaderLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(lblClassNameByCurrentYear)
                            .addComponent(lblStudentIDByCurrentYear))
                        .addGap(35, 35, 35)
                        .addGroup(pnlCurrentYearByStudentHeaderLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(lblResultForClassNameCurrentYear)
                            .addComponent(lblResultForStudentIDCurrentYear)))
                    .addComponent(lblResultForBirthdayCurrentYear))
                .addContainerGap(597, Short.MAX_VALUE))
        );
        pnlCurrentYearByStudentHeaderLayout.setVerticalGroup(
            pnlCurrentYearByStudentHeaderLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlCurrentYearByStudentHeaderLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pnlCurrentYearByStudentHeaderLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(pnlCurrentYearByStudentHeaderLayout.createSequentialGroup()
                        .addGroup(pnlCurrentYearByStudentHeaderLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lblClassNameByCurrentYear)
                            .addComponent(lblResultForClassNameCurrentYear))
                        .addGap(27, 27, 27)
                        .addGroup(pnlCurrentYearByStudentHeaderLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lblStudentIDByCurrentYear)
                            .addComponent(lblResultForStudentIDCurrentYear)))
                    .addGroup(pnlCurrentYearByStudentHeaderLayout.createSequentialGroup()
                        .addGroup(pnlCurrentYearByStudentHeaderLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lblStudentNameByCurrentYear)
                            .addComponent(lblResultForStudentNameCurrentYear))
                        .addGap(27, 27, 27)
                        .addGroup(pnlCurrentYearByStudentHeaderLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lblStudentGenderByCurrentYear)
                            .addComponent(lblResultForGenderCurrentYear))))
                .addGap(27, 27, 27)
                .addGroup(pnlCurrentYearByStudentHeaderLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblStudentBirthdayByCurrentYear)
                    .addComponent(lblResultForBirthdayCurrentYear, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(26, Short.MAX_VALUE))
        );

        pnlCurrentYearByStudent.add(pnlCurrentYearByStudentHeader, java.awt.BorderLayout.PAGE_START);

        pnlCurrentYearByStudentCenter.setBackground(new java.awt.Color(204, 204, 204));
        pnlCurrentYearByStudentCenter.setBorder(javax.swing.BorderFactory.createTitledBorder("Kết quả các môn học trong năm"));
        pnlCurrentYearByStudentCenter.setLayout(new java.awt.BorderLayout());

        tblResultCurrentYearOfStudent.setBackground(new java.awt.Color(255, 204, 255));
        tblResultCurrentYearOfStudent.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Title 1", "Title 2", "Title 3", "Title 4"
            }
        ));
        jsPaneResultCurrentYearOfStudent.setViewportView(tblResultCurrentYearOfStudent);

        pnlCurrentYearByStudentCenter.add(jsPaneResultCurrentYearOfStudent, java.awt.BorderLayout.CENTER);

        pnlCurrentYearByStudentFooter.setBackground(new java.awt.Color(204, 204, 255));
        pnlCurrentYearByStudentFooter.setBorder(javax.swing.BorderFactory.createTitledBorder("Tổng kết"));
        pnlCurrentYearByStudentFooter.setPreferredSize(new java.awt.Dimension(1068, 150));

        jLabel1.setFont(new java.awt.Font("Tahoma", 0, 12));
        jLabel1.setText("Hạnh kiểm:");

        lblResultOfConduct.setFont(new java.awt.Font("Tahoma", 1, 12));
        lblResultOfConduct.setForeground(new java.awt.Color(0, 0, 255));
        lblResultOfConduct.setText("jLabel2");

        jLabel3.setFont(new java.awt.Font("Tahoma", 0, 12));
        jLabel3.setText("Học lực:");

        lblResultOfAcademic.setFont(new java.awt.Font("Tahoma", 1, 12));
        lblResultOfAcademic.setForeground(new java.awt.Color(0, 0, 255));
        lblResultOfAcademic.setText("jLabel2");

        jLabel5.setFont(new java.awt.Font("Tahoma", 0, 12));
        jLabel5.setText("Nhận xét của giáo viên:");

        txaCommentOfTeacher.setColumns(20);
        txaCommentOfTeacher.setFont(new java.awt.Font("Tahoma", 0, 12));
        txaCommentOfTeacher.setRows(5);
        jScrollPane1.setViewportView(txaCommentOfTeacher);

        javax.swing.GroupLayout pnlCurrentYearByStudentFooterLayout = new javax.swing.GroupLayout(pnlCurrentYearByStudentFooter);
        pnlCurrentYearByStudentFooter.setLayout(pnlCurrentYearByStudentFooterLayout);
        pnlCurrentYearByStudentFooterLayout.setHorizontalGroup(
            pnlCurrentYearByStudentFooterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlCurrentYearByStudentFooterLayout.createSequentialGroup()
                .addGap(39, 39, 39)
                .addGroup(pnlCurrentYearByStudentFooterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel1)
                    .addComponent(jLabel3))
                .addGap(30, 30, 30)
                .addGroup(pnlCurrentYearByStudentFooterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblResultOfAcademic)
                    .addComponent(lblResultOfConduct))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 360, Short.MAX_VALUE)
                .addComponent(jLabel5)
                .addGap(32, 32, 32)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 330, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(27, 27, 27))
        );
        pnlCurrentYearByStudentFooterLayout.setVerticalGroup(
            pnlCurrentYearByStudentFooterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlCurrentYearByStudentFooterLayout.createSequentialGroup()
                .addGap(22, 22, 22)
                .addGroup(pnlCurrentYearByStudentFooterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 93, Short.MAX_VALUE)
                    .addGroup(pnlCurrentYearByStudentFooterLayout.createSequentialGroup()
                        .addGroup(pnlCurrentYearByStudentFooterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel1)
                            .addComponent(lblResultOfConduct)
                            .addComponent(jLabel5))
                        .addGap(34, 34, 34)
                        .addGroup(pnlCurrentYearByStudentFooterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel3)
                            .addComponent(lblResultOfAcademic))))
                .addContainerGap())
        );

        pnlCurrentYearByStudentCenter.add(pnlCurrentYearByStudentFooter, java.awt.BorderLayout.PAGE_END);

        pnlCurrentYearByStudent.add(pnlCurrentYearByStudentCenter, java.awt.BorderLayout.CENTER);

        pnlCenterByStudent.add(pnlCurrentYearByStudent, "card2");

        pnlAllYearByStudent.setLayout(new java.awt.BorderLayout());

        pnlCenterAllYearByStudent.setBorder(javax.swing.BorderFactory.createTitledBorder("Kết quả học tập"));
        pnlCenterAllYearByStudent.setLayout(new java.awt.BorderLayout());

        tblResultOfStudentAllYear.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Title 1", "Title 2", "Title 3", "Title 4"
            }
        ));
        jsResultOfStudentAllYear.setViewportView(tblResultOfStudentAllYear);

        pnlCenterAllYearByStudent.add(jsResultOfStudentAllYear, java.awt.BorderLayout.CENTER);

        pnlAllYearByStudent.add(pnlCenterAllYearByStudent, java.awt.BorderLayout.CENTER);

        pnlHeaderOfStudentAllYear.setPreferredSize(new java.awt.Dimension(1084, 160));

        lblClassNameByAllYear1.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblClassNameByAllYear1.setText("Lớp quản lý:");

        lblResultForClassName1.setFont(new java.awt.Font("Tahoma", 1, 12));
        lblResultForClassName1.setForeground(new java.awt.Color(255, 0, 0));
        lblResultForClassName1.setText("jLabel2");

        lblResultForStudentID1.setFont(new java.awt.Font("Tahoma", 1, 12));
        lblResultForStudentID1.setForeground(new java.awt.Color(255, 0, 0));
        lblResultForStudentID1.setText("jLabel2");

        lblStudentIDByAllYear1.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblStudentIDByAllYear1.setText("Mã học sinh:");

        lblResultForStudentName1.setFont(new java.awt.Font("Tahoma", 1, 12));
        lblResultForStudentName1.setForeground(new java.awt.Color(255, 0, 0));
        lblResultForStudentName1.setText("jLabel2");

        lblStudentNameByAllYear1.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblStudentNameByAllYear1.setText("Họ tên:");

        lblStudentGenderByAllYear1.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblStudentGenderByAllYear1.setText("Giới tính:");

        lblResultForGender1.setFont(new java.awt.Font("Tahoma", 1, 12));
        lblResultForGender1.setForeground(new java.awt.Color(255, 0, 0));
        lblResultForGender1.setText("jLabel2");

        lblResultForBirthday1.setFont(new java.awt.Font("Tahoma", 1, 12));
        lblResultForBirthday1.setForeground(new java.awt.Color(255, 0, 0));
        lblResultForBirthday1.setText("jLabel2");

        lblStudentBirthdayByAllYear1.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblStudentBirthdayByAllYear1.setText("Ngày sinh:");

        javax.swing.GroupLayout pnlHeaderOfStudentAllYearLayout = new javax.swing.GroupLayout(pnlHeaderOfStudentAllYear);
        pnlHeaderOfStudentAllYear.setLayout(pnlHeaderOfStudentAllYearLayout);
        pnlHeaderOfStudentAllYearLayout.setHorizontalGroup(
            pnlHeaderOfStudentAllYearLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlHeaderOfStudentAllYearLayout.createSequentialGroup()
                .addGap(30, 30, 30)
                .addGroup(pnlHeaderOfStudentAllYearLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblStudentNameByAllYear1)
                    .addComponent(lblStudentGenderByAllYear1)
                    .addComponent(lblStudentBirthdayByAllYear1))
                .addGap(35, 35, 35)
                .addGroup(pnlHeaderOfStudentAllYearLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlHeaderOfStudentAllYearLayout.createSequentialGroup()
                        .addGroup(pnlHeaderOfStudentAllYearLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(lblResultForStudentName1)
                            .addComponent(lblResultForGender1))
                        .addGap(157, 157, 157)
                        .addGroup(pnlHeaderOfStudentAllYearLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(lblClassNameByAllYear1)
                            .addComponent(lblStudentIDByAllYear1))
                        .addGap(35, 35, 35)
                        .addGroup(pnlHeaderOfStudentAllYearLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(lblResultForClassName1)
                            .addComponent(lblResultForStudentID1)))
                    .addComponent(lblResultForBirthday1))
                .addContainerGap(615, Short.MAX_VALUE))
        );
        pnlHeaderOfStudentAllYearLayout.setVerticalGroup(
            pnlHeaderOfStudentAllYearLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlHeaderOfStudentAllYearLayout.createSequentialGroup()
                .addGap(27, 27, 27)
                .addGroup(pnlHeaderOfStudentAllYearLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(pnlHeaderOfStudentAllYearLayout.createSequentialGroup()
                        .addGroup(pnlHeaderOfStudentAllYearLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lblClassNameByAllYear1)
                            .addComponent(lblResultForClassName1))
                        .addGap(27, 27, 27)
                        .addGroup(pnlHeaderOfStudentAllYearLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lblStudentIDByAllYear1)
                            .addComponent(lblResultForStudentID1)))
                    .addGroup(pnlHeaderOfStudentAllYearLayout.createSequentialGroup()
                        .addGroup(pnlHeaderOfStudentAllYearLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lblStudentNameByAllYear1)
                            .addComponent(lblResultForStudentName1))
                        .addGap(27, 27, 27)
                        .addGroup(pnlHeaderOfStudentAllYearLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lblStudentGenderByAllYear1)
                            .addComponent(lblResultForGender1))))
                .addGap(27, 27, 27)
                .addGroup(pnlHeaderOfStudentAllYearLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblStudentBirthdayByAllYear1)
                    .addComponent(lblResultForBirthday1, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(34, Short.MAX_VALUE))
        );

        pnlAllYearByStudent.add(pnlHeaderOfStudentAllYear, java.awt.BorderLayout.PAGE_START);

        pnlCenterByStudent.add(pnlAllYearByStudent, "card3");

        pnlStatisticByStudent.add(pnlCenterByStudent, java.awt.BorderLayout.CENTER);

        pnlCenter.add(pnlStatisticByStudent, "card11");

        pnlStatisticByClass.setLayout(new java.awt.BorderLayout());

        pnlHeaderStatisticByClass.setBorder(javax.swing.BorderFactory.createTitledBorder("Tìm kiếm"));
        pnlHeaderStatisticByClass.setPreferredSize(new java.awt.Dimension(1100, 80));

        lblStatiticsByClass.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblStatiticsByClass.setText("Chọn tiêu chí tìm kiếm:");
        lblStatiticsByClass.setPreferredSize(new java.awt.Dimension(140, 15));
        pnlHeaderStatisticByClass.add(lblStatiticsByClass);

        cbbClassNameByClass.setFont(new java.awt.Font("Tahoma", 0, 12));
        cbbClassNameByClass.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
        cbbClassNameByClass.setMinimumSize(new java.awt.Dimension(120, 22));
        cbbClassNameByClass.setPreferredSize(new java.awt.Dimension(120, 22));
        pnlHeaderStatisticByClass.add(cbbClassNameByClass);

        btnFindResultOfClass.setFont(new java.awt.Font("Tahoma", 1, 12));
        btnFindResultOfClass.setText("Tìm");
        btnFindResultOfClass.setPreferredSize(new java.awt.Dimension(100, 25));
        btnFindResultOfClass.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnFindResultOfClassActionPerformed(evt);
            }
        });
        pnlHeaderStatisticByClass.add(btnFindResultOfClass);

        pnlStatisticByClass.add(pnlHeaderStatisticByClass, java.awt.BorderLayout.PAGE_START);

        pnlFooterStatisticByClass.setPreferredSize(new java.awt.Dimension(1100, 50));

        btnToPrintByClass.setFont(new java.awt.Font("Tahoma", 0, 12));
        btnToPrintByClass.setText("Xuất dữ liệu ra Excel");
        btnToPrintByClass.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnToPrintByClassActionPerformed(evt);
            }
        });
        pnlFooterStatisticByClass.add(btnToPrintByClass);

        pnlStatisticByClass.add(pnlFooterStatisticByClass, java.awt.BorderLayout.PAGE_END);

        pnlCenterStatisticByClass.setBorder(javax.swing.BorderFactory.createTitledBorder("Kết quả"));
        pnlCenterStatisticByClass.setLayout(new java.awt.BorderLayout());

        pnlCenterStatisticByClassHeader.setPreferredSize(new java.awt.Dimension(1084, 100));

        lblClassNameByClass.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblClassNameByClass.setText("Lớp:");

        lblTeacherNameByClass.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblTeacherNameByClass.setText("Giáo Viên:");

        lblClassNameStatisticByClass.setFont(new java.awt.Font("Tahoma", 1, 12));
        lblClassNameStatisticByClass.setForeground(new java.awt.Color(255, 0, 0));
        lblClassNameStatisticByClass.setText("jLabel3");

        lblTeacherNameStatisticByClass.setFont(new java.awt.Font("Tahoma", 1, 12));
        lblTeacherNameStatisticByClass.setForeground(new java.awt.Color(255, 0, 0));
        lblTeacherNameStatisticByClass.setText("jLabel3");

        javax.swing.GroupLayout pnlCenterStatisticByClassHeaderLayout = new javax.swing.GroupLayout(pnlCenterStatisticByClassHeader);
        pnlCenterStatisticByClassHeader.setLayout(pnlCenterStatisticByClassHeaderLayout);
        pnlCenterStatisticByClassHeaderLayout.setHorizontalGroup(
            pnlCenterStatisticByClassHeaderLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlCenterStatisticByClassHeaderLayout.createSequentialGroup()
                .addGap(42, 42, 42)
                .addGroup(pnlCenterStatisticByClassHeaderLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblClassNameByClass)
                    .addComponent(lblTeacherNameByClass))
                .addGap(44, 44, 44)
                .addGroup(pnlCenterStatisticByClassHeaderLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblClassNameStatisticByClass)
                    .addComponent(lblTeacherNameStatisticByClass))
                .addContainerGap(899, Short.MAX_VALUE))
        );
        pnlCenterStatisticByClassHeaderLayout.setVerticalGroup(
            pnlCenterStatisticByClassHeaderLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlCenterStatisticByClassHeaderLayout.createSequentialGroup()
                .addGap(22, 22, 22)
                .addGroup(pnlCenterStatisticByClassHeaderLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblClassNameByClass)
                    .addComponent(lblClassNameStatisticByClass))
                .addGap(22, 22, 22)
                .addGroup(pnlCenterStatisticByClassHeaderLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblTeacherNameByClass)
                    .addComponent(lblTeacherNameStatisticByClass))
                .addContainerGap(26, Short.MAX_VALUE))
        );

        pnlCenterStatisticByClass.add(pnlCenterStatisticByClassHeader, java.awt.BorderLayout.PAGE_START);

        pnlCenterStatisticByClassCenter.setLayout(new java.awt.BorderLayout());

        tblResultClassByClass.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Title 1", "Title 2", "Title 3", "Title 4"
            }
        ));
        jsPaneResultClassByClass.setViewportView(tblResultClassByClass);

        pnlCenterStatisticByClassCenter.add(jsPaneResultClassByClass, java.awt.BorderLayout.CENTER);

        pnlCenterStatisticByClass.add(pnlCenterStatisticByClassCenter, java.awt.BorderLayout.CENTER);

        pnlStatisticByClass.add(pnlCenterStatisticByClass, java.awt.BorderLayout.CENTER);

        pnlCenter.add(pnlStatisticByClass, "card12");

        lblUserName.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblUserName.setText("Tên đăng nhập:");

        txtUserName.setFont(new java.awt.Font("Tahoma", 0, 12));

        lblPassword.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblPassword.setText("Mật khẩu:");

        lblLogin.setFont(new java.awt.Font("Tahoma", 1, 24));
        lblLogin.setText("ĐĂNG NHẬP");

        pfPassword.setFont(new java.awt.Font("Tahoma", 0, 12));

        btnLogin.setFont(new java.awt.Font("Tahoma", 0, 12));
        btnLogin.setText("Đăng nhập");
        btnLogin.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnLoginActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout pnlLoginLayout = new javax.swing.GroupLayout(pnlLogin);
        pnlLogin.setLayout(pnlLoginLayout);
        pnlLoginLayout.setHorizontalGroup(
            pnlLoginLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlLoginLayout.createSequentialGroup()
                .addGap(368, 368, 368)
                .addGroup(pnlLoginLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblUserName)
                    .addComponent(lblPassword))
                .addGap(18, 18, 18)
                .addGroup(pnlLoginLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblLogin)
                    .addGroup(pnlLoginLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                        .addComponent(pfPassword)
                        .addComponent(txtUserName, javax.swing.GroupLayout.DEFAULT_SIZE, 186, Short.MAX_VALUE)
                        .addComponent(btnLogin)))
                .addContainerGap(440, Short.MAX_VALUE))
        );
        pnlLoginLayout.setVerticalGroup(
            pnlLoginLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlLoginLayout.createSequentialGroup()
                .addGap(83, 83, 83)
                .addComponent(lblLogin)
                .addGap(75, 75, 75)
                .addGroup(pnlLoginLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(txtUserName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblUserName))
                .addGap(32, 32, 32)
                .addGroup(pnlLoginLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(lblPassword)
                    .addComponent(pfPassword, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(32, 32, 32)
                .addComponent(btnLogin)
                .addContainerGap(324, Short.MAX_VALUE))
        );

        pnlCenter.add(pnlLogin, "card13");

        lblChange.setFont(new java.awt.Font("Tahoma", 1, 24));
        lblChange.setText("THAY ĐỔI THÔNG TIN CÁ NHÂN");

        lblChangeUserName.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblChangeUserName.setText("Tên đăng nhập hiện tại:");

        txtChangeUserName.setFont(new java.awt.Font("Tahoma", 0, 12));

        pfOldPassword.setFont(new java.awt.Font("Tahoma", 0, 12));

        lblOldPassword.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblOldPassword.setText("Mật khẩu hiện tại:");

        btnChange.setFont(new java.awt.Font("Tahoma", 0, 12));
        btnChange.setText("Thay đổi");
        btnChange.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnChangeActionPerformed(evt);
            }
        });

        lblNewPassword.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblNewPassword.setText("Mật khẩu mới:");

        pfNewPassword.setFont(new java.awt.Font("Tahoma", 0, 12));

        javax.swing.GroupLayout pnlChangeAccountLayout = new javax.swing.GroupLayout(pnlChangeAccount);
        pnlChangeAccount.setLayout(pnlChangeAccountLayout);
        pnlChangeAccountLayout.setHorizontalGroup(
            pnlChangeAccountLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlChangeAccountLayout.createSequentialGroup()
                .addGroup(pnlChangeAccountLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlChangeAccountLayout.createSequentialGroup()
                        .addGap(354, 354, 354)
                        .addComponent(lblChange))
                    .addGroup(pnlChangeAccountLayout.createSequentialGroup()
                        .addGap(368, 368, 368)
                        .addGroup(pnlChangeAccountLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlChangeAccountLayout.createSequentialGroup()
                                .addComponent(lblChangeUserName)
                                .addGap(33, 33, 33))
                            .addComponent(lblNewPassword)
                            .addComponent(lblOldPassword))
                        .addGap(11, 11, 11)
                        .addGroup(pnlChangeAccountLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(pfOldPassword, javax.swing.GroupLayout.DEFAULT_SIZE, 197, Short.MAX_VALUE)
                            .addComponent(txtChangeUserName, javax.swing.GroupLayout.DEFAULT_SIZE, 197, Short.MAX_VALUE)
                            .addComponent(pfNewPassword, javax.swing.GroupLayout.DEFAULT_SIZE, 197, Short.MAX_VALUE)
                            .addComponent(btnChange))))
                .addContainerGap(359, Short.MAX_VALUE))
        );
        pnlChangeAccountLayout.setVerticalGroup(
            pnlChangeAccountLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlChangeAccountLayout.createSequentialGroup()
                .addGap(77, 77, 77)
                .addComponent(lblChange)
                .addGap(81, 81, 81)
                .addGroup(pnlChangeAccountLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(lblChangeUserName)
                    .addComponent(txtChangeUserName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(41, 41, 41)
                .addGroup(pnlChangeAccountLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(lblOldPassword)
                    .addComponent(pfOldPassword, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(42, 42, 42)
                .addGroup(pnlChangeAccountLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(pfNewPassword, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblNewPassword))
                .addGap(38, 38, 38)
                .addComponent(btnChange)
                .addGap(246, 246, 246))
        );

        pnlCenter.add(pnlChangeAccount, "card14");

        pnlAccountManager.setLayout(new java.awt.BorderLayout());

        pnlAccountManagerLeft.setMinimumSize(new java.awt.Dimension(500, 650));
        pnlAccountManagerLeft.setPreferredSize(new java.awt.Dimension(500, 650));
        pnlAccountManagerLeft.setLayout(new java.awt.BorderLayout());

        pnlAccountManagerLeftHeader.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
        pnlAccountManagerLeftHeader.setMinimumSize(new java.awt.Dimension(500, 50));
        pnlAccountManagerLeftHeader.setPreferredSize(new java.awt.Dimension(500, 50));

        lblAccountManager.setFont(new java.awt.Font("Tahoma", 0, 18));
        lblAccountManager.setText("THÔNG TIN VỀ TÀI KHOẢN");
        pnlAccountManagerLeftHeader.add(lblAccountManager);

        pnlAccountManagerLeft.add(pnlAccountManagerLeftHeader, java.awt.BorderLayout.PAGE_START);

        pnlAccountManagerLeftFooter.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
        pnlAccountManagerLeftFooter.setMinimumSize(new java.awt.Dimension(500, 50));
        pnlAccountManagerLeftFooter.setPreferredSize(new java.awt.Dimension(500, 60));

        btnAddAccount.setFont(new java.awt.Font("Tahoma", 1, 12));
        btnAddAccount.setText("Cho phép THÊM");
        btnAddAccount.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnAddAccountActionPerformed(evt);
            }
        });
        pnlAccountManagerLeftFooter.add(btnAddAccount);

        btnResetAccount.setFont(new java.awt.Font("Tahoma", 1, 12));
        btnResetAccount.setText("Reset Account");
        btnResetAccount.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnResetAccountActionPerformed(evt);
            }
        });
        pnlAccountManagerLeftFooter.add(btnResetAccount);

        btnDeleteAccount.setFont(new java.awt.Font("Tahoma", 1, 12));
        btnDeleteAccount.setText("XÓA");
        btnDeleteAccount.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnDeleteAccountActionPerformed(evt);
            }
        });
        pnlAccountManagerLeftFooter.add(btnDeleteAccount);

        pnlAccountManagerLeft.add(pnlAccountManagerLeftFooter, java.awt.BorderLayout.PAGE_END);

        pnlAccountManagerLeftCenter.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
        pnlAccountManagerLeftCenter.setPreferredSize(new java.awt.Dimension(500, 530));

        lblAccountIDForAccount.setFont(new java.awt.Font("Tahoma", 1, 11));
        lblAccountIDForAccount.setText("Tên đăng nhập:");

        javax.swing.GroupLayout pnlAccountManagerLeftCenterLayout = new javax.swing.GroupLayout(pnlAccountManagerLeftCenter);
        pnlAccountManagerLeftCenter.setLayout(pnlAccountManagerLeftCenterLayout);
        pnlAccountManagerLeftCenterLayout.setHorizontalGroup(
            pnlAccountManagerLeftCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlAccountManagerLeftCenterLayout.createSequentialGroup()
                .addGap(46, 46, 46)
                .addComponent(lblAccountIDForAccount)
                .addGap(71, 71, 71)
                .addComponent(txtAccountIDForAccount, javax.swing.GroupLayout.DEFAULT_SIZE, 160, Short.MAX_VALUE)
                .addGap(129, 129, 129))
        );
        pnlAccountManagerLeftCenterLayout.setVerticalGroup(
            pnlAccountManagerLeftCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlAccountManagerLeftCenterLayout.createSequentialGroup()
                .addGap(52, 52, 52)
                .addGroup(pnlAccountManagerLeftCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(txtAccountIDForAccount, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblAccountIDForAccount))
                .addContainerGap(450, Short.MAX_VALUE))
        );

        pnlAccountManagerLeft.add(pnlAccountManagerLeftCenter, java.awt.BorderLayout.CENTER);

        pnlAccountManager.add(pnlAccountManagerLeft, java.awt.BorderLayout.LINE_START);

        pnlAccountManagerRight.setPreferredSize(new java.awt.Dimension(500, 650));
        pnlAccountManagerRight.setLayout(new java.awt.BorderLayout());

        pnlAccountManagerRightHeader.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
        pnlAccountManagerRightHeader.setPreferredSize(new java.awt.Dimension(500, 50));

        lblListAccountManager.setFont(new java.awt.Font("Tahoma", 1, 16));
        lblListAccountManager.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        lblListAccountManager.setText("Danh Sách Tài Khoản");
        lblListAccountManager.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);
        lblListAccountManager.setPreferredSize(new java.awt.Dimension(400, 27));

        javax.swing.GroupLayout pnlAccountManagerRightHeaderLayout = new javax.swing.GroupLayout(pnlAccountManagerRightHeader);
        pnlAccountManagerRightHeader.setLayout(pnlAccountManagerRightHeaderLayout);
        pnlAccountManagerRightHeaderLayout.setHorizontalGroup(
            pnlAccountManagerRightHeaderLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 592, Short.MAX_VALUE)
            .addGroup(pnlAccountManagerRightHeaderLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(pnlAccountManagerRightHeaderLayout.createSequentialGroup()
                    .addGap(0, 96, Short.MAX_VALUE)
                    .addComponent(lblListAccountManager, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 96, Short.MAX_VALUE)))
        );
        pnlAccountManagerRightHeaderLayout.setVerticalGroup(
            pnlAccountManagerRightHeaderLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 42, Short.MAX_VALUE)
            .addGroup(pnlAccountManagerRightHeaderLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(pnlAccountManagerRightHeaderLayout.createSequentialGroup()
                    .addGap(0, 7, Short.MAX_VALUE)
                    .addComponent(lblListAccountManager, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 8, Short.MAX_VALUE)))
        );

        pnlAccountManagerRight.add(pnlAccountManagerRightHeader, java.awt.BorderLayout.PAGE_START);

        pnlAccountManagerRightCenter.setPreferredSize(new java.awt.Dimension(500, 610));
        pnlAccountManagerRightCenter.setLayout(new java.awt.BorderLayout());

        pnlAccountManagerRightCenterHeader.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
        pnlAccountManagerRightCenterHeader.setPreferredSize(new java.awt.Dimension(500, 50));

        lblFindByAccountID.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblFindByAccountID.setText("Tìm kiếm theo tên đăng nhập:");
        lblFindByAccountID.setPreferredSize(new java.awt.Dimension(190, 27));
        pnlAccountManagerRightCenterHeader.add(lblFindByAccountID);

        txtFindByAccountID.setFont(new java.awt.Font("Tahoma", 0, 12));
        txtFindByAccountID.setPreferredSize(new java.awt.Dimension(120, 23));
        pnlAccountManagerRightCenterHeader.add(txtFindByAccountID);

        btnFindByAccountID.setFont(new java.awt.Font("Tahoma", 0, 12));
        btnFindByAccountID.setText("Tìm Kiếm");
        btnFindByAccountID.setPreferredSize(new java.awt.Dimension(100, 27));
        btnFindByAccountID.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnFindByAccountIDActionPerformed(evt);
            }
        });
        pnlAccountManagerRightCenterHeader.add(btnFindByAccountID);

        pnlAccountManagerRightCenter.add(pnlAccountManagerRightCenterHeader, java.awt.BorderLayout.PAGE_START);

        pnAccountManagerRightCenterFooter.setBackground(new java.awt.Color(255, 255, 255));
        pnAccountManagerRightCenterFooter.setPreferredSize(new java.awt.Dimension(500, 100));
        pnAccountManagerRightCenterFooter.setLayout(new java.awt.BorderLayout());

        lblLienHe8.setBackground(new java.awt.Color(255, 255, 255));
        lblLienHe8.setFont(new java.awt.Font("Tahoma", 1, 14));
        lblLienHe8.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        lblLienHe8.setText("Liên Hệ: Nguyễn Văn Tính");
        pnAccountManagerRightCenterFooter.add(lblLienHe8, java.awt.BorderLayout.CENTER);

        pnlAccountManagerRightCenter.add(pnAccountManagerRightCenterFooter, java.awt.BorderLayout.PAGE_END);

        pnlAccountManagerRightCenterCenter.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
        pnlAccountManagerRightCenterCenter.setPreferredSize(new java.awt.Dimension(500, 400));
        pnlAccountManagerRightCenterCenter.setLayout(new java.awt.BorderLayout());

        listAccountManager.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" };
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        });
        listAccountManager.addListSelectionListener(new javax.swing.event.ListSelectionListener() {
            public void valueChanged(javax.swing.event.ListSelectionEvent evt) {
                listAccountManagerValueChanged(evt);
            }
        });
        jsPaneAccountManager.setViewportView(listAccountManager);

        pnlAccountManagerRightCenterCenter.add(jsPaneAccountManager, java.awt.BorderLayout.CENTER);

        pnlAccountManagerRightCenter.add(pnlAccountManagerRightCenterCenter, java.awt.BorderLayout.CENTER);

        pnlAccountManagerRight.add(pnlAccountManagerRightCenter, java.awt.BorderLayout.CENTER);

        pnlAccountManager.add(pnlAccountManagerRight, java.awt.BorderLayout.CENTER);

        pnlCenter.add(pnlAccountManager, "card15");

        getContentPane().add(pnlCenter, java.awt.BorderLayout.CENTER);

        mnuFile.setText("Hệ Thống");

        itemLogin.setText("Đăng Nhập");
        itemLogin.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                itemLoginActionPerformed(evt);
            }
        });
        mnuFile.add(itemLogin);

        itemLogout.setText("Đăng Xuất");
        itemLogout.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                itemLogoutActionPerformed(evt);
            }
        });
        mnuFile.add(itemLogout);

        itemChangeAccount.setText("Thay Đổi Mật Khẩu");
        itemChangeAccount.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                itemChangeAccountActionPerformed(evt);
            }
        });
        mnuFile.add(itemChangeAccount);

        itemClose.setText("Thoát");
        itemClose.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                itemCloseActionPerformed(evt);
            }
        });
        mnuFile.add(itemClose);

        MenuBar.add(mnuFile);

        mnuManager.setText("Quản Lý");

        itemStudentManager.setText("Quản Lý Học Sinh");
        itemStudentManager.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                itemStudentManagerActionPerformed(evt);
            }
        });
        mnuManager.add(itemStudentManager);

        itemSubjectManager.setText("Quản Lý Môn Học");
        itemSubjectManager.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                itemSubjectManagerActionPerformed(evt);
            }
        });
        mnuManager.add(itemSubjectManager);

        itemClassManager.setText("Quản Lý Lớp Học");
        itemClassManager.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                itemClassManagerActionPerformed(evt);
            }
        });
        mnuManager.add(itemClassManager);

        itemTeacherManager.setText("Quản Lý Giáo Viên");
        itemTeacherManager.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                itemTeacherManagerActionPerformed(evt);
            }
        });
        mnuManager.add(itemTeacherManager);

        itemMarkManager.setText("Quản Lý Điểm");
        itemMarkManager.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                itemMarkManagerActionPerformed(evt);
            }
        });
        mnuManager.add(itemMarkManager);
        mnuManager.add(separatorOne);

        itemAccountManager.setText("Quản Lý Tài Khoản");
        itemAccountManager.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                itemAccountManagerActionPerformed(evt);
            }
        });
        mnuManager.add(itemAccountManager);

        itemClassRoomBlockManager.setText("Quản Lý Khối Học");
        itemClassRoomBlockManager.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                itemClassRoomBlockManagerActionPerformed(evt);
            }
        });
        mnuManager.add(itemClassRoomBlockManager);

        itemProvinceManager.setText("Quản Lý Tỉnh Thành");
        itemProvinceManager.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                itemProvinceManagerActionPerformed(evt);
            }
        });
        mnuManager.add(itemProvinceManager);

        itemSemesterManager.setText("Quản Lý Học Kì");
        itemSemesterManager.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                itemSemesterManagerActionPerformed(evt);
            }
        });
        mnuManager.add(itemSemesterManager);

        MenuBar.add(mnuManager);

        mnuStatistic.setText("Thống Kê");

        itemResultForClass.setText("Kết Quả Học Tập Của Lớp");
        itemResultForClass.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                itemResultForClassActionPerformed(evt);
            }
        });
        mnuStatistic.add(itemResultForClass);

        itemResultForStudent.setText("Kết Quả Học Tập Của Học Sinh");
        itemResultForStudent.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                itemResultForStudentActionPerformed(evt);
            }
        });
        mnuStatistic.add(itemResultForStudent);

        MenuBar.add(mnuStatistic);

        setJMenuBar(MenuBar);

        pack();
    }// </editor-fold>//GEN-END:initComponents

private void cbbClassRoomBlockForClassItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_cbbClassRoomBlockForClassItemStateChanged
    ClassRoomBlock block = (ClassRoomBlock) this.cbbClassRoomBlockForClass.getSelectedItem();
    String name = this.cbbClassNameForClass.getSelectedItem().toString();
    this.className = block.getClassRoomBlockID() + name;
    this.txtClassIDForClass.setText(className + "-" + year);
}//GEN-LAST:event_cbbClassRoomBlockForClassItemStateChanged

private void cbbClassNameForClassItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_cbbClassNameForClassItemStateChanged
    ClassRoomBlock block = (ClassRoomBlock) this.cbbClassRoomBlockForClass.getSelectedItem();
    String name = this.cbbClassNameForClass.getSelectedItem().toString();
    this.className = block.getClassRoomBlockID() + name;
    this.txtClassIDForClass.setText(className + "-" + year);
}//GEN-LAST:event_cbbClassNameForClassItemStateChanged

private void cbbFromYearForClassItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_cbbFromYearForClassItemStateChanged
    this.year = Integer.valueOf(this.cbbFromYearForClass.getSelectedItem().toString());
    this.txtToYearForClass.setText(String.valueOf(Integer.valueOf(this.cbbFromYearForClass.getSelectedItem().toString()) + 1));
    this.txtClassIDForClass.setText(className + "-" + year);
}//GEN-LAST:event_cbbFromYearForClassItemStateChanged

private void cbbTeacherForClassItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_cbbTeacherForClassItemStateChanged
}//GEN-LAST:event_cbbTeacherForClassItemStateChanged

    private void clearComponentsForAddProvince() {
        this.txtProvinceIDForProvince.setText("");
        this.txtProvinceNameForProvince.setText("");
        this.txtProvinceIDForProvince.setFocusable(true);
        this.txtProvinceIDForProvince.setEditable(true);
        this.txtProvinceNameForProvince.setEditable(true);
    }

    private boolean checkValidateProvince(String provinceID, String provinceName) {
        if (provinceID.length() == 0 || provinceName.length() == 0) {
            JOptionPane.showMessageDialog(this, "Mã và Tên Tỉnh (Thành) không được để trống!");
            return false;
        }
        return true;
    }

private void btnAddProvinceActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnAddProvinceActionPerformed
    if (this.enabledAddProvince) {
        this.enabledAddProvince = false;
        this.btnAddProvince.setText("Thêm Mới");
        this.clearComponentsForAddProvince();

        this.enabledEditProvince = true;
        this.btnEditProvince.setText("Cho phép SỬA Tỉnh Thành");
    } else {
        String provinceID = this.txtProvinceIDForProvince.getText().trim().toUpperCase();
        String provinceName = this.txtProvinceNameForProvince.getText().trim().toUpperCase();
        if (this.checkValidateProvince(provinceID, provinceName)) {
            Province province = this.manager.getProvinceManager().contains(provinceID, provinceName);
            if (province == null) {
                province = new Province(provinceID, provinceName, true);
                this.manager.getProvinceManagerDB().insertProvince(province);
                this.provinceModel.addElement(province);
                this.provinceComboBoxModel.addElement(province);
                JOptionPane.showMessageDialog(this, "Đã thêm mới Tỉnh (Thành) thành công!");
                this.clearComponentsForAddProvince();
            } else if (province.isStatus()) {
                JOptionPane.showMessageDialog(this, "Đã tồn tại Tỉnh (Thành) này. Mời bạn kiểm tra lại thông tin về Tỉnh (Thành) muốn thêm Mới!");
                this.txtProvinceIDForProvince.setFocusable(true);
            } else {
                province.setStatus(true);
                this.manager.getProvinceManagerDB().updateProvince(province);
                this.provinceModel.addElement(province);
                this.provinceComboBoxModel.addElement(province);
                JOptionPane.showMessageDialog(this, "Đã thêm mới Tỉnh (Thành) thành công!");
                this.clearComponentsForAddProvince();
            }
        }
    }
}//GEN-LAST:event_btnAddProvinceActionPerformed

private void listProvinceManagerValueChanged(javax.swing.event.ListSelectionEvent evt) {//GEN-FIRST:event_listProvinceManagerValueChanged
    Province provinceSelected = (Province) this.listProvinceManager.getSelectedValue();
    this.txtProvinceIDForProvince.setText(provinceSelected.getProvinceID());
    this.txtProvinceNameForProvince.setText(provinceSelected.getProvinceName());
}//GEN-LAST:event_listProvinceManagerValueChanged

private void btnFindByNameProvinceActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnFindByNameProvinceActionPerformed
    Province provinceSelected = (Province) this.manager.getProvinceManager().getByName(this.txtFindByNameProvince.getText().trim().toUpperCase());
    if (provinceSelected != null) {
        this.listProvinceManager.setSelectedValue(provinceSelected, true);
        this.txtProvinceIDForProvince.setText(provinceSelected.getProvinceID());
        this.txtProvinceNameForProvince.setText(provinceSelected.getProvinceName());
    } else {
        JOptionPane.showMessageDialog(this, "Không có Tỉnh (Thành) nào có tên là '" + this.txtFindByNameProvince.getText().trim().toUpperCase() + "'");
    }
}//GEN-LAST:event_btnFindByNameProvinceActionPerformed

private void btnEditProvinceActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnEditProvinceActionPerformed
    if (this.enabledEditProvince) {
        this.enabledEditProvince = false;
        this.txtProvinceIDForProvince.setEditable(false);
        this.txtProvinceNameForProvince.setEditable(true);
        this.btnEditProvince.setText("Sửa");

        this.enabledAddProvince = true;
        this.btnAddProvince.setText("Cho phép THÊM Tỉnh Thành");
    } else {
        Province provinceSelected = (Province) this.listProvinceManager.getSelectedValue();
        if (provinceSelected != null) {
            String provinceName = this.txtProvinceNameForProvince.getText().trim().toUpperCase();
            if (this.checkValidateProvince(provinceSelected.getProvinceID(), provinceName)) {
                Province province = this.manager.getProvinceManager().getByName(provinceName);
                if (province != null) {
                    JOptionPane.showMessageDialog(this, "Đã có Tỉnh (Thành): " + provinceName + ". Mời bạn kiểm tra lại thông tin!");
                } else {
                    provinceSelected.setProvinceName(provinceName);
                    this.manager.getProvinceManagerDB().updateProvince(provinceSelected);
                    this.provinceModel.replace(this.listProvinceManager.getSelectedIndex(), provinceSelected);
                    this.txtProvinceNameForProvince.setText(provinceName);
                    JOptionPane.showMessageDialog(this, "Đã sửa Tỉnh (Thành) thành công!");
                }
            }
        } else {
            JOptionPane.showMessageDialog(this, "Bạn chưa chọn Tỉnh (Thành) muốn SỬA!");
        }
    }
}//GEN-LAST:event_btnEditProvinceActionPerformed

private void btnDeleteProvinceActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnDeleteProvinceActionPerformed
    Province province = (Province) this.listProvinceManager.getSelectedValue();

    if (province != null) {
        if (this.provinceModel.getSize() > 1) {
            int selected = this.listProvinceManager.getSelectedIndex();
            if (selected == this.provinceModel.getSize() - 1) {
                this.listProvinceManager.setSelectedIndex(selected - 1);
            } else {
                this.listProvinceManager.setSelectedIndex(selected + 1);
            }
        } else {
            this.listProvinceManager.setFocusable(false);
        }
        this.manager.getProvinceManagerDB().deleteProvince(province);
        this.provinceModel.remove(province);
        JOptionPane.showMessageDialog(this, "Đã xóa thành công Tỉnh (Thành): " + province.getProvinceName());
    } else {
        JOptionPane.showMessageDialog(this, "Bạn chưa chọn Tỉnh (Thành) muốn xóa!");
    }
}//GEN-LAST:event_btnDeleteProvinceActionPerformed

    private boolean checkValidateForClasRoomBlock(String blockName) {
        if (blockName.length() == 0) {
            JOptionPane.showMessageDialog(this, "Tên khối học không được để trống!");
            return false;
        }
        return true;
    }
private void btnAddClassRoomBlockActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnAddClassRoomBlockActionPerformed
    if (this.enabledAddClassRoomBlock) {
        this.enabledAddClassRoomBlock = false;
        this.txtClassRoomBlockNameForClassRoomBlock.setEditable(true);
        this.btnAddClassRoomBlock.setText("Thêm");
        this.txtClassRoomBlockNameForClassRoomBlock.setText("");

        this.enabledEditClassRoomBlock = true;
        this.btnEditClassRoomBlock.setText("Cho phép SỬA khối học");
    } else {
        String classRoomBlockName = this.txtClassRoomBlockNameForClassRoomBlock.getText().trim().toUpperCase();
        if (this.checkValidateForClasRoomBlock(classRoomBlockName)) {
            ClassRoomBlock block = this.manager.getClassRoomBlockManager().getByName(classRoomBlockName);
            if (block == null) {
                block = new ClassRoomBlock(0, classRoomBlockName, true);
                this.manager.getClassRoomBlockManagerDB().insertClassRoomBlock(block);
                this.classRoomBlockModel.add(block);
                JOptionPane.showMessageDialog(this, "Khối học đã được thêm mới thành công!");
                this.txtClassRoomBlockNameForClassRoomBlock.setText("");
            } else {
                if (block.isStatus()) {
                    JOptionPane.showMessageDialog(this, "Khối học này đã tồn tại. Mời bạn kiểm tra lại thông tin!");
                } else {
                    block.setStatus(true);
                    this.manager.getClassRoomBlockManagerDB().updateClassRoomBlock(block);
                    this.classRoomBlockModel.refresh();

                    JOptionPane.showMessageDialog(this, "Khối học đã được thêm mới thành công!");
                    this.txtClassRoomBlockNameForClassRoomBlock.setText("");
                }
            }
        }
    }
}//GEN-LAST:event_btnAddClassRoomBlockActionPerformed

private void btnEditClassRoomBlockActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnEditClassRoomBlockActionPerformed
    if (this.enabledEditClassRoomBlock) {
        this.enabledEditClassRoomBlock = false;
        this.txtClassRoomBlockNameForClassRoomBlock.setEditable(true);
        this.btnEditClassRoomBlock.setText("Sửa");

        this.enabledAddClassRoomBlock = true;
        this.btnAddClassRoomBlock.setText("Cho phép Thêm khối học");
    } else {
        ClassRoomBlock blockSelected = (ClassRoomBlock) this.listClassRoomBlockManager.getSelectedValue();
        if (blockSelected == null) {
            JOptionPane.showMessageDialog(this, "Bạn chưa chọn Lớp muốn SỬA!");
        } else {
            String blockName = this.txtClassRoomBlockNameForClassRoomBlock.getText().trim().toUpperCase();
            if (this.manager.getClassRoomBlockManager().getByName(blockName) == null) {
                blockSelected.setClassRoomBlockName(blockName);
                this.manager.getClassRoomBlockManagerDB().updateClassRoomBlock(blockSelected);
                this.classRoomBlockModel.replace(this.listClassRoomBlockManager.getSelectedIndex(), blockSelected);
                JOptionPane.showMessageDialog(this, "Khối học đã được SỬA thành công!");
            }
        }
    }
}//GEN-LAST:event_btnEditClassRoomBlockActionPerformed

private void listClassRoomBlockManagerValueChanged(javax.swing.event.ListSelectionEvent evt) {//GEN-FIRST:event_listClassRoomBlockManagerValueChanged
    ClassRoomBlock blockSelected = (ClassRoomBlock) this.listClassRoomBlockManager.getSelectedValue();
    if (blockSelected != null) {
        this.txtClassRoomBlockNameForClassRoomBlock.setText(blockSelected.getClassRoomBlockName());
    }
}//GEN-LAST:event_listClassRoomBlockManagerValueChanged

private void btnDeleteClassRoomBlockActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnDeleteClassRoomBlockActionPerformed
    ClassRoomBlock blockSelected = (ClassRoomBlock) this.listClassRoomBlockManager.getSelectedValue();
    if (blockSelected == null) {
        JOptionPane.showMessageDialog(this, "Bạn chưa chọn KHỐI muốn XÓA!");
    } else {
        if (this.classRoomBlockModel.getSize() > 1) {
            int selected = this.listClassRoomBlockManager.getSelectedIndex();
            if (selected == this.classRoomBlockModel.getSize() - 1) {
                this.listClassRoomBlockManager.setSelectedIndex(selected - 1);
            } else {
                this.listClassRoomBlockManager.setSelectedIndex(selected + 1);
            }
        } else {
            this.listClassRoomBlockManager.setFocusable(false);
        }
        blockSelected.setStatus(false);
        this.manager.getClassRoomBlockManagerDB().deleteClassRoomBlock(blockSelected);
        this.classRoomBlockModel.remove(blockSelected);
        JOptionPane.showMessageDialog(this, "Khối '" + blockSelected.getClassRoomBlockName() + "' đã được xóa thành công!");
    }
}//GEN-LAST:event_btnDeleteClassRoomBlockActionPerformed

    private boolean checkValidateForSemester(String semesterName) {
        if (semesterName.length() == 0) {
            JOptionPane.showMessageDialog(this, "Tên Học Kỳ không được để trống!");
            return false;
        }
        return true;
    }

private void btnAddSemesterActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnAddSemesterActionPerformed
    if (this.enabledAddSemester) {
        this.enabledAddSemester = false;
        this.txtSemesterNameForSemester.setEditable(true);
        this.txtSemesterNameForSemester.setText("");
        this.btnAddSemester.setText("Thêm");

        this.enabledEditSemester = true;
        this.btnEditSemester.setText("Cho phép SỬA Học Kỳ");
    } else {
        String semesterName = this.txtSemesterNameForSemester.getText().trim().toUpperCase();
        if (this.checkValidateForSemester(semesterName)) {
            Semester semester = this.manager.getSemesterManager().getByName(semesterName);
            if (semester == null) {
                semester = new Semester(0, semesterName, true);
                this.manager.getSemesterManagerDB().insertSemester(semester);
                this.semesterModel.add(semester);
                JOptionPane.showMessageDialog(this, "Học Kỳ mới đã được thêm thành công!");
                this.txtSemesterNameForSemester.setText("");
            } else {
                if (semester.isStatus()) {
                    JOptionPane.showMessageDialog(this, "Học kỳ '" + semesterName + "' đã tồn tại. Mời bạn kiểm tra lại thông tin!");
                } else {
                    semester.setStatus(true);
                    this.manager.getSemesterManagerDB().updateSemester(semester);
                    this.semesterModel.refresh();
                }
            }
        }
    }
}//GEN-LAST:event_btnAddSemesterActionPerformed

private void listSemesterManagerValueChanged(javax.swing.event.ListSelectionEvent evt) {//GEN-FIRST:event_listSemesterManagerValueChanged
    Semester semesterSelected = (Semester) this.listSemesterManager.getSelectedValue();
    if (semesterSelected != null) {
        this.txtSemesterNameForSemester.setText(semesterSelected.getSemesterName());
    }
}//GEN-LAST:event_listSemesterManagerValueChanged

private void btnEditSemesterActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnEditSemesterActionPerformed
    if (this.enabledEditSemester) {
        this.enabledEditSemester = false;
        this.txtSemesterNameForSemester.setEditable(true);
        this.btnEditSemester.setText("Sửa");

        this.enabledAddSemester = true;
        this.btnAddSemester.setText("Cho phép THÊM Học Kỳ");
    } else {
        Semester semester = (Semester) this.listSemesterManager.getSelectedValue();
        if (semester == null) {
            JOptionPane.showMessageDialog(this, "Bạn chưa chọn Học Kỳ muốn sửa!");
        } else {
            String semesterName = this.txtSemesterNameForSemester.getText().trim().toUpperCase();
            if (this.checkValidateForSemester(semesterName)) {
                Semester semesterObj = this.manager.getSemesterManager().getByName(semesterName);
                if (semesterObj == null) {
                    semester.setSemesterName(semesterName);
                    this.manager.getSemesterManagerDB().updateSemester(semester);
                    this.semesterModel.refresh();
                    JOptionPane.showMessageDialog(this, "Học kỳ đã được sửa thành công!");
                } else if (semesterObj.isStatus()) {
                    JOptionPane.showMessageDialog(this, "Học kỳ '" + semesterName + "' đã tồn tại!");
                } else {
                    semesterObj.setStatus(true);
                    this.manager.getSemesterManagerDB().updateSemester(semester);
                    this.semesterModel.refresh();
                }
            }
        }
    }
}//GEN-LAST:event_btnEditSemesterActionPerformed

private void btnDeleteSemesterActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnDeleteSemesterActionPerformed
    Semester semester = (Semester) this.listSemesterManager.getSelectedValue();
    if (semester != null) {
        this.manager.getSemesterManagerDB().deleteSemester(semester);
        this.semesterModel.remove(semester);
        JOptionPane.showMessageDialog(this, "Đã xóa học kỳ '" + semester.getSemesterName() + "' thành công!");
    } else {
        JOptionPane.showMessageDialog(this, "Bạn chưa chọn Học Kỳ muốn XÓA!");
    }
}//GEN-LAST:event_btnDeleteSemesterActionPerformed

    private void clearComponentsForTeacher() {
        this.txtTeacherNameForTeacher.setText("");
        this.txtPhoneForTeacher.setText("");
        this.txaAddressForTeacher.setText("");
        this.cbbProvinceForTeacher.setSelectedIndex(0);
        this.cbbDayBirthdayForTeacher.setSelectedIndex(0);
        this.cbbMonthBirthdayForTeacher.setSelectedIndex(0);
        this.cbbYearBirthdayForTeacher.setSelectedIndex(0);
        this.cbbDayForTeacher.setSelectedIndex(0);
        this.cbbMonthForTeacher.setSelectedIndex(0);
        this.cbbYearForTeacher.setSelectedIndex(0);
        this.cbbSalaryScoreForTeacher.setSelectedIndex(0);
        this.cbbSeniorityScoreForTeacher.setSelectedIndex(0);
        this.cbbAllowanceForTeacher.setSelectedIndex(0);
    }

    private Teacher getTeacher() {
        float salary = Float.valueOf(this.cbbSalaryScoreForTeacher.getSelectedItem().toString());
        float seniority = Float.valueOf(this.cbbSeniorityScoreForTeacher.getSelectedItem().toString());
        float allowance = Float.valueOf(this.cbbAllowanceForTeacher.getSelectedItem().toString());
        String teacherName = this.txtTeacherNameForTeacher.getText().trim().toUpperCase();
        String phone = this.txtPhoneForTeacher.getText().trim().toUpperCase();
        String address = this.txaAddressForTeacher.getText().trim();

        if (teacherName.length() == 0) {
            JOptionPane.showMessageDialog(this, "Bạn chưa nhập tên Giáo Viên");
        } else if (phone.length() == 0) {
            JOptionPane.showMessageDialog(this, "Bạn chưa nhập SĐT");
        } else if (address.length() == 0) {
            JOptionPane.showMessageDialog(this, "Bạn chưa nhập địa chỉ");
        } else {
            Calendar calendar = Calendar.getInstance();
            int yearNow = (Integer) this.cbbYearForTeacher.getSelectedItem();
            int month = (Integer) this.cbbMonthForTeacher.getSelectedItem();
            int day = (Integer) this.cbbDayForTeacher.getSelectedItem();
            calendar.set(yearNow, month, day);
            Date dateIn = calendar.getTime();

            Calendar calendarBirthday = Calendar.getInstance();
            int yearBirthday = (Integer) this.cbbYearBirthdayForTeacher.getSelectedItem();
            int monthBirthday = (Integer) this.cbbMonthBirthdayForTeacher.getSelectedItem();
            int dayBirthday = (Integer) this.cbbDayBirthdayForTeacher.getSelectedItem();
            calendarBirthday.set(yearBirthday, monthBirthday, dayBirthday);
            Date dateBirthday = calendarBirthday.getTime();

            Province province = (Province) this.cbbProvinceForTeacher.getSelectedItem();

            boolean gender = this.rdFemaleForTeacher.isSelected() ? true : false;

            return new Teacher(0, province.getProvinceID(), teacherName, dateBirthday, gender, salary, seniority, allowance, dateIn, phone, address, true);
        }
        return null;
    }

private void btnAddTeacherActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnAddTeacherActionPerformed
    if (this.enabledAddTeacher) {
        this.enabledAddTeacher = false;
        this.clearComponentsForTeacher();
        this.setVisibleComponentsForTeacher(true);

        this.btnAddTeacher.setText("Thêm");

        this.enabledEditTeacher = true;
        this.btnEditTeacher.setText("Cho phép SỬA Giáo Viên");
    } else {
        Teacher teacher = this.getTeacher();
        if (teacher != null) {
            this.manager.getTeacherManagerDB().insertTeacher(teacher);
            this.teacherModel.add(teacher);
            this.refreshComboBoxTeacher();
            JOptionPane.showMessageDialog(this, "Đã thêm mới Giáo Viên thành công!");
            this.clearComponentsForTeacher();
        }
    }
}//GEN-LAST:event_btnAddTeacherActionPerformed
    private void refreshComboBoxTeacher() {
        teacherComboBoxModel.removeAllElements();
        for (int i = 0; i < this.manager.getTeacherManager().size(); i++) {
            if (this.manager.getTeacherManager().get(i).isStatus()) {
                teacherComboBoxModel.addElement(this.manager.getTeacherManager().get(i));
            }
        }
        this.cbbTeacherForClass.setModel(teacherComboBoxModel);
    }

private void btnEditTeacherActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnEditTeacherActionPerformed
    if (this.enabledEditTeacher) {
        this.enabledEditTeacher = false;
        this.setVisibleComponentsForTeacher(true);

        this.btnEditTeacher.setText("Sửa");

        this.enabledAddTeacher = true;
        this.btnAddTeacher.setText("Cho phép THÊM Giáo Viên");
    } else {
        int selected = this.tblTeacherManager.getSelectedRow();
        if (selected >= 0) {
            Teacher teacher = this.teacherModel.get(selected);
            teacher.setTeacherName(this.txtTeacherNameForTeacher.getText().trim().toUpperCase());

            Calendar calendar = Calendar.getInstance();
            int yearNow = (Integer) this.cbbYearForTeacher.getSelectedItem();
            int month = (Integer) this.cbbMonthForTeacher.getSelectedItem();
            int day = (Integer) this.cbbDayForTeacher.getSelectedItem();
            calendar.set(yearNow, month, day);
            Date dateIn = calendar.getTime();
            teacher.setDateIn(dateIn);

            teacher.setGender(this.rdFemaleForTeacher.isSelected());
            teacher.setPhone(this.txtPhoneForTeacher.getText().trim().toUpperCase());
            teacher.setAddress(this.txaAddressForTeacher.getText().trim());

            Province province = (Province) this.cbbProvinceForTeacher.getSelectedItem();
            teacher.setProvinceID(province.getProvinceID());

            Calendar calendarBirthday = Calendar.getInstance();
            int yearBirthday = (Integer) this.cbbYearBirthdayForTeacher.getSelectedItem();
            int monthBirthday = (Integer) this.cbbMonthBirthdayForTeacher.getSelectedItem();
            int dayBirthday = (Integer) this.cbbDayBirthdayForTeacher.getSelectedItem();
            calendarBirthday.set(yearBirthday, monthBirthday, dayBirthday);
            Date dateBirthday = calendarBirthday.getTime();
            teacher.setBirthday(dateBirthday);

            teacher.setSalaryScore(Float.valueOf(this.cbbSalaryScoreForTeacher.getSelectedItem().toString()));
            teacher.setSeniorityScore(Float.valueOf(this.cbbSeniorityScoreForTeacher.getSelectedItem().toString()));
            teacher.setAllowance(Float.valueOf(this.cbbAllowanceForTeacher.getSelectedItem().toString()));

            this.manager.getTeacherManagerDB().updateTeacher(teacher);
            this.teacherModel.refresh();
            this.refreshComboBoxTeacher();
            JOptionPane.showMessageDialog(this, "Giáo viên đã được sửa thành công!");
        }
    }
}//GEN-LAST:event_btnEditTeacherActionPerformed

private void btnDeleteTeacherActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnDeleteTeacherActionPerformed
    int selected = this.tblTeacherManager.getSelectedRow();
    if (selected >= 0) {
        Teacher teacher = (Teacher) this.teacherModel.get(selected);
        this.manager.getTeacherManagerDB().deleteTeacher(teacher);
        this.teacherModel.remove(teacher);
        this.refreshComboBoxTeacher();
    } else {
        JOptionPane.showMessageDialog(this, "Bạn chưa chọn giáo viên muốn xóa!");
    }
}//GEN-LAST:event_btnDeleteTeacherActionPerformed

    private void tblTeacherValueChanged(int selected) {
        if (selected >= 0) {
            Teacher teacher = this.teacherModel.get(selected);
            Province province = this.manager.getProvinceManager().getByID(teacher.getProvinceID());
            SimpleDateFormat dfDay = new SimpleDateFormat("dd");
            SimpleDateFormat dfMonth = new SimpleDateFormat("MM");
            SimpleDateFormat dfYear = new SimpleDateFormat("yyyy");

            this.txtTeacherNameForTeacher.setText(teacher.getTeacherName());
            this.txtPhoneForTeacher.setText(teacher.getPhone());
            this.txaAddressForTeacher.setText(teacher.getAddress());
            this.cbbProvinceForTeacher.setSelectedItem(province);
            this.cbbDayBirthdayForTeacher.setSelectedItem(Integer.valueOf(dfDay.format(teacher.getBirthday())));
            this.cbbMonthBirthdayForTeacher.setSelectedItem(Integer.valueOf(dfMonth.format(teacher.getBirthday())));
            this.cbbYearBirthdayForTeacher.setSelectedItem(Integer.valueOf(dfYear.format(teacher.getBirthday())));
            this.cbbDayForTeacher.setSelectedItem(Integer.valueOf(dfDay.format(teacher.getDateIn())));
            this.cbbMonthForTeacher.setSelectedItem(Integer.valueOf(dfMonth.format(teacher.getDateIn())));
            this.cbbYearForTeacher.setSelectedItem(Integer.valueOf(dfYear.format(teacher.getDateIn())));
            this.cbbSalaryScoreForTeacher.setSelectedItem(teacher.getSalaryScore());
            this.cbbSeniorityScoreForTeacher.setSelectedItem(teacher.getSeniorityScore());
            this.cbbAllowanceForTeacher.setSelectedItem(teacher.getAllowance());
        }
    }

private void tblTeacherManagerMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_tblTeacherManagerMouseClicked
    this.enabledAddTeacher = true;
    this.btnAddTeacher.setText("Cho phép THÊM Giáo Viên");

    int selected = this.tblTeacherManager.getSelectedRow();
    this.tblTeacherValueChanged(selected);
}//GEN-LAST:event_tblTeacherManagerMouseClicked

    private void clearComponentsForClass() {
        this.cbbClassRoomBlockForClass.setSelectedIndex(0);
        this.cbbClassNameForClass.setSelectedIndex(0);
        this.cbbFromYearForClass.setSelectedIndex(0);
        this.cbbTeacherForClass.setSelectedIndex(0);
    }

    private void setVisibleComponentsForClass(boolean value) {
        this.cbbClassRoomBlockForClass.setEnabled(value);
        this.cbbClassNameForClass.setEnabled(value);
        this.cbbFromYearForClass.setEnabled(value);
        this.cbbTeacherForClass.setEnabled(value);
    }

private void btnAddClassActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnAddClassActionPerformed
    if (this.enabledAddClass) {
        this.enabledAddClass = false;
        this.clearComponentsForClass();
        this.setVisibleComponentsForClass(true);

        this.btnAddClass.setText("Thêm");

        this.enabledEditClass = true;
        this.btnEditClass.setText("Cho phép SỬA");
    } else {
        ClassRoomBlock block = (ClassRoomBlock) this.cbbClassRoomBlockForClass.getSelectedItem();
        Teacher teacher = (Teacher) this.cbbTeacherForClass.getSelectedItem();
        Class newClass = new Class(className + "-" + Integer.valueOf(this.cbbFromYearForClass.getSelectedItem().toString()), block.getClassRoomBlockID(), className, Integer.valueOf(this.cbbFromYearForClass.getSelectedItem().toString()), Integer.valueOf(this.cbbFromYearForClass.getSelectedItem().toString()) + 1, true);

        TeacherClassDetails classDetails = new TeacherClassDetails(0, className + "-" + this.cbbFromYearForClass.getSelectedItem().toString(), teacher.getTeacherID(), true);
        Class contains = this.manager.getClassManager().contains(newClass);
        TeacherClassDetails containsDetails = this.manager.getTeacherClassDetailsManager().contains(classDetails);

        if (contains == null) {
            this.manager.getClassManagerDB().insertClass(newClass);
            this.manager.getTeacherClassDetailsManagerDB().insertTeacherClassDetails(classDetails);
            this.classModel.add(newClass);
            this.classComboBoxModel.addElement(newClass);
            this.manager.getTeacherClassDetailsManager().add(classDetails);
            JOptionPane.showMessageDialog(this, "Đã thêm Lớp mới thành công!");
        } else {
            if (contains.isStatus()) {
                JOptionPane.showMessageDialog(this, "Lớp này đã tồn tại. Mời bạn xem lại thông tin Lớp mới!");
            } else {
                contains.setStatus(true);
                containsDetails.setStatus(true);
                this.manager.getClassManagerDB().updateClass(contains);
                this.manager.getTeacherClassDetailsManagerDB().updateTeacherClassDetails(containsDetails);
                this.manager.getTeacherClassDetailsManager().setVisible(containsDetails, true);
                this.classComboBoxModel.addElement(contains);
                this.classModel.refresh();
            }
        }
    }
}//GEN-LAST:event_btnAddClassActionPerformed

private void btnEditClassActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnEditClassActionPerformed
    if (this.enabledEditClass) {
        this.enabledEditClass = false;
        this.setVisibleComponentsForClass(false);
        this.cbbTeacherForClass.setEnabled(true);

        this.btnEditClass.setText("Sửa");

        this.enabledAddClass = true;
        this.btnAddClass.setText("Cho phép THÊM");
    } else {
        Class classPressed = this.classModel.get(this.tblClassManager.getSelectedRow());
        TeacherClassDetails details = this.manager.getTeacherClassDetailsManager().getByClassID(classPressed.getClassID());
        if (classPressed == null) {
            JOptionPane.showMessageDialog(this, "Bạn chưa chọn Lớp muốn sửa thông tin!");
        } else {
            Teacher selected = (Teacher) this.cbbTeacherForClass.getSelectedItem();
            details.setTeacherID(selected.getTeacherID());
            this.manager.getTeacherClassDetailsManagerDB().updateTeacherClassDetails(details);
            this.classModel.refresh();
        }
    }
}//GEN-LAST:event_btnEditClassActionPerformed

    private void setComponentsForClass(Class classSelected) {
        this.cbbClassRoomBlockForClass.setSelectedItem(this.manager.getClassRoomBlockManager().getById(classSelected.getClassRoomBlockID()));
        this.cbbClassNameForClass.setSelectedItem(String.valueOf(classSelected.getClassName().charAt(1)));
        this.cbbFromYearForClass.setSelectedItem(classSelected.getFromYear());

        TeacherClassDetails details = this.manager.getTeacherClassDetailsManager().getByClassID(classSelected.getClassID());
        this.cbbTeacherForClass.setSelectedItem(this.manager.getTeacherManager().getById(details.getTeacherID()));
    }

private void tblClassManagerMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_tblClassManagerMouseClicked
    this.enabledAddClass = true;
    this.btnAddClass.setText("Cho phép THÊM");
    Class classPressed = this.classModel.get(this.tblClassManager.getSelectedRow());
    if (classPressed != null) {
        this.setComponentsForClass(classPressed);
        this.setVisibleComponentsForClass(false);
    }
}//GEN-LAST:event_tblClassManagerMouseClicked

private void btnDeleteClassActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnDeleteClassActionPerformed
    Class classPressed = this.classModel.get(this.tblClassManager.getSelectedRow());
    if (classPressed == null) {
        JOptionPane.showMessageDialog(this, "Bạn chưa chọn Lớp muốn XÓA!");
    } else {
        classPressed.setStatus(false);
        this.manager.getClassManagerDB().updateClass(classPressed);
        this.classModel.refresh();
        JOptionPane.showMessageDialog(this, "Đã xóa Lớp thành công!");
    }
}//GEN-LAST:event_btnDeleteClassActionPerformed

private void btnMoveClassForClassActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnMoveClassForClassActionPerformed
    int selected = this.tblClassManager.getSelectedRow();
    if (selected >= 0) {
        Class classSelected = (Class) this.classModel.get(selected);
        TeacherClassDetails classDetails = this.manager.getTeacherClassDetailsManager().getByClassID(classSelected.getClassID());
        Class newClass = new Class(String.valueOf(classSelected.getClassRoomBlockID() + 1) + classSelected.getClassName().charAt(1) + "-" + classSelected.getToYear(), classSelected.getClassRoomBlockID() + 1, String.valueOf(classSelected.getClassRoomBlockID() + 1) + classSelected.getClassName().charAt(1), classSelected.getFromYear() + 1, classSelected.getToYear() + 1, true);
        if (this.manager.getClassManager().contains(newClass) == null) {
            this.manager.getClassManagerDB().deleteClass(classSelected);
            classSelected.setStatus(false);
            this.classModel.refresh();
            this.manager.getClassManagerDB().insertClass(newClass);
            this.classModel.add(newClass);

            TeacherClassDetails classDetailsNew = new TeacherClassDetails(0, newClass.getClassID(), classDetails.getTeacherID(), true);
            this.manager.getTeacherClassDetailsManagerDB().deleteTeacherClassDetails(classDetails);
            classDetails.setStatus(false);
            this.manager.getTeacherClassDetailsManagerDB().insertTeacherClassDetails(classDetailsNew);
            this.manager.getTeacherClassDetailsManager().add(classDetailsNew);

            ArrayList<Student> alStudent = this.manager.getStudentManager().getByClassID(classSelected.getClassID());
            ArrayList<Subject> alSubject = this.manager.getSubjectManager().getSubjectsByClassRoomBlockId(newClass.getClassRoomBlockID());

            if (alStudent.size() > 0) {
                for (Student student : alStudent) {
                    student.setClassID(newClass.getClassID());

                    for (Subject subject : alSubject) {
                        Mark mark = new Mark(subject.getSubjectID(), student.getStudentID(), "No", "No", "No", true);
                        this.manager.getMarkManagerDB().insertMark(mark);
                        this.markModel.add(mark);
                    }

                    this.manager.getStudentManagerDB().updateStudent(student);
                }
                this.studentModel.refresh();
            }
            JOptionPane.showMessageDialog(this, "Đã thực hiện Lên lớp thành công!");
        }
    } else {
        JOptionPane.showMessageDialog(this, "Bạn chưa chọn lớp");
    }
}//GEN-LAST:event_btnMoveClassForClassActionPerformed

private void btnFindByClassNameForClassActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnFindByClassNameForClassActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_btnFindByClassNameForClassActionPerformed

    private void clearComponentsForSubject() {
        this.txtSubjectNameForSubject.setText("");
        this.cbbClassRoomBlockForSubject.setSelectedIndex(0);
        this.cbbClassPeriodForSubject.setSelectedIndex(0);
        this.cbbPointTypeForSubject.setSelectedIndex(0);
    }

    private void setVisibleComponentsForSubject(boolean value) {
        this.txtSubjectNameForSubject.setEditable(value);
        this.cbbClassRoomBlockForSubject.setEnabled(value);
        this.cbbClassPeriodForSubject.setEnabled(value);
        this.cbbPointTypeForSubject.setEnabled(value);
    }

private void btnAddSubjectActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnAddSubjectActionPerformed
    if (this.enabledAddSubject) {
        this.enabledAddSubject = false;
        this.clearComponentsForSubject();
        this.setVisibleComponentsForSubject(true);

        this.btnAddSubject.setText("Thêm");

        this.enabledEditSubject = true;
        this.btnEditSubject.setText("Cho phép SỬA");
    } else {
        String subjectName = this.txtSubjectNameForSubject.getText().trim().toUpperCase();
        ClassRoomBlock block = (ClassRoomBlock) this.cbbClassRoomBlockForSubject.getSelectedItem();
        int classPeriod = Integer.valueOf(this.cbbClassPeriodForSubject.getSelectedItem().toString());
        PointType pointType = (PointType) this.cbbPointTypeForSubject.getSelectedItem();
        Subject subject = new Subject(0, block.getClassRoomBlockID(), subjectName, classPeriod, pointType.getPointTypeID(), true);
        Subject contains = this.manager.getSubjectManager().contains(subject);
        if (contains == null) {
            this.manager.getSubjectManagerDB().insertSubject(subject);
            this.subjectModel.add(subject);
            JOptionPane.showMessageDialog(this, "Môn học đã được thêm mới thành công!");
            this.clearComponentsForSubject();
        } else {
            if (contains.isStatus()) {
                JOptionPane.showMessageDialog(this, "Môn học này đã tồn tại. Mời bạn kiểm tra lại thông tin Môn Học");
            } else {
                contains.setStatus(true);
                this.manager.getSubjectManagerDB().updateSubjects(contains);
                this.subjectModel.refresh();
                JOptionPane.showMessageDialog(this, "Môn học đã được thêm mới thành công!");
                this.clearComponentsForSubject();
            }
        }
    }
}//GEN-LAST:event_btnAddSubjectActionPerformed

private void btnEditSubjectActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnEditSubjectActionPerformed
    if (this.enabledEditSubject) {
        this.enabledEditSubject = false;
        this.setVisibleComponentsForSubject(true);

        this.btnEditSubject.setText("Sửa");

        this.enabledAddSubject = true;
        this.btnAddSubject.setText("Cho phép THÊM");
    } else {
        int selected = this.tblSubjectManager.getSelectedRow();
        Subject subject = this.subjectModel.get(selected);
        if (subject == null) {
            JOptionPane.showMessageDialog(this, "Bạn chưa chọn Môn Học muốn sửa!");
        } else {
            String subjectName = this.txtSubjectNameForSubject.getText().trim().toUpperCase();
            ClassRoomBlock block = (ClassRoomBlock) this.cbbClassRoomBlockForSubject.getSelectedItem();
            int classPeriod = Integer.valueOf(this.cbbClassPeriodForSubject.getSelectedItem().toString());
            PointType pointType = (PointType) this.cbbPointTypeForSubject.getSelectedItem();
            Subject subjectEdit = new Subject(0, block.getClassRoomBlockID(), subjectName, classPeriod, pointType.getPointTypeID(), true);
            Subject contains = null;
            if (subjectEdit.getClassRoomBlockID() != subject.getClassRoomBlockID() || !subjectEdit.getSubjectName().equals(subject.getSubjectName())) {

                contains = this.manager.getSubjectManager().contains(subjectEdit);
            }

            if (contains != null) {
                JOptionPane.showMessageDialog(this, "Thông tin mới về Môn học muốn sửa đã tồn tại. Mời bạn kiểm tra lại!");
            } else {
                subject.setSubjectName(subjectName);
                subject.setClassRoomBlockID(block.getClassRoomBlockID());
                subject.setClassPeriod(classPeriod);
                subject.setPointTypeID(pointType.getPointTypeID());
                this.manager.getSubjectManagerDB().updateSubjects(subject);
                this.subjectModel.refresh();
            }
        }
    }
}//GEN-LAST:event_btnEditSubjectActionPerformed

private void btnDeleteSubjectActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnDeleteSubjectActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_btnDeleteSubjectActionPerformed

private void btnFindBySubjectNameForSubjectActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnFindBySubjectNameForSubjectActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_btnFindBySubjectNameForSubjectActionPerformed

private void tblSubjectManagerMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_tblSubjectManagerMouseClicked
    int selected = this.tblSubjectManager.getSelectedRow();
    Subject subject = this.subjectModel.get(selected);
    if (subject != null) {
        this.setComponentsForSubject(subject);
    }
    this.enabledAddSubject = true;
    this.btnAddSubject.setText("Cho phép THÊM");
}//GEN-LAST:event_tblSubjectManagerMouseClicked

    private void setComponentsForSubject(Subject subject) {
        this.txtSubjectNameForSubject.setText(subject.getSubjectName());
        this.cbbClassRoomBlockForSubject.setSelectedItem(this.manager.getClassRoomBlockManager().getById(subject.getClassRoomBlockID()));
        this.cbbClassPeriodForSubject.setSelectedItem(subject.getClassPeriod());
        PointType point = this.manager.getPointTypeManager().getById(subject.getPointTypeID());
        this.cbbPointTypeForSubject.setSelectedItem(point);
    }

private void tblSubjectManagerKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_tblSubjectManagerKeyPressed
    int selected = this.tblSubjectManager.getSelectedRow();
    Subject subject = this.subjectModel.get(selected);
    if (subject != null) {
        this.setComponentsForSubject(subject);
    }
    this.enabledAddSubject = true;
    this.btnAddSubject.setText("Cho phép THÊM");
}//GEN-LAST:event_tblSubjectManagerKeyPressed

private void itemMarkManagerActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_itemMarkManagerActionPerformed
    this.pnlClassRoomBlockManager.setVisible(false);
    this.pnlClassManager.setVisible(false);
    this.pnlProvinceManager.setVisible(false);
    this.pnlSemesterManager.setVisible(false);
    this.pnlTeacherManager.setVisible(false);
    this.pnlSubjectManager.setVisible(false);
    this.pnlStudentManager.setVisible(false);
    this.pnlMarkManager.setVisible(true);
    this.pnlLogin.setVisible(false);
    this.pnlHome.setVisible(false);
    this.pnlChangeAccount.setVisible(false);
    this.pnlAccountManager.setVisible(false);
    this.pnlStatisticByStudent.setVisible(false);
    this.pnlStatisticByClass.setVisible(false);
}//GEN-LAST:event_itemMarkManagerActionPerformed

    private Student getStudent() {

        String studentName = this.txtStudentNameForStudent.getText().trim().toUpperCase();
        String father = this.txtFatherForStudent.getText().trim().toUpperCase();
        String mother = this.txtMotherForStudent.getText().trim().toUpperCase();
        String phone = this.txtPhoneForStudent.getText().trim().toUpperCase();
        String address = this.txaAddressForStudent.getText().trim();
        Calendar calendarBirthday = Calendar.getInstance();

        int yearBirthday = (Integer) this.cbbYearForStudent.getSelectedItem();
        int monthBirthday = (Integer) this.cbbMonthForStudent.getSelectedItem();
        int dayBirthday = (Integer) this.cbbDayForStudent.getSelectedItem();

        calendarBirthday.set(yearBirthday, monthBirthday, dayBirthday);
        Date dateBirthday = calendarBirthday.getTime();
        Province province = (Province) this.cbbProvinceForStudent.getSelectedItem();
        Class classSelected = (Class) this.cbbClassForStudent.getSelectedItem();
        int studentID = this.manager.getStudentManager().maxStudentID() + 1;

        if (studentName.length() == 0) {
            JOptionPane.showMessageDialog(this, "Tên Học Sinh không được để trống!");
        } else if (father.length() == 0) {
            JOptionPane.showMessageDialog(this, "Tên Bố không được để trống!");
        } else if (mother.length() == 0) {
            JOptionPane.showMessageDialog(this, "Tên Mẹ không được để trống!");
        } else if (phone.length() == 0) {
            JOptionPane.showMessageDialog(this, "SĐT không được để trống!");
        } else if (address.length() == 0) {
            JOptionPane.showMessageDialog(this, "Địa chỉ không được để trống!");
        } else {
            return new Student("HS" + studentID, classSelected.getClassID(), studentName, father, mother, phone, address, province.getProvinceID(), dateBirthday, this.rdFemaleForStudent.isSelected(), true);
        }
        return null;
    }

    private void clearComponentsForStudent() {
        this.txtStudentNameForStudent.setText("");
        this.txtFatherForStudent.setText("");
        this.txtMotherForStudent.setText("");
        this.txtPhoneForStudent.setText("");
        this.txaAddressForStudent.setText("");
        this.cbbProvinceForStudent.setSelectedIndex(0);
        this.cbbClassForStudent.setSelectedIndex(0);
        this.cbbDayForStudent.setSelectedIndex(0);
        this.cbbMonthForStudent.setSelectedIndex(0);
        this.cbbYearForStudent.setSelectedIndex(0);
    }

private void btnAddStudentActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnAddStudentActionPerformed
    if (this.enabledAddStudent) {
        this.enabledAddStudent = false;
        this.setVisibleComponentsForStudent(true);

        this.btnAddStudent.setText("Thêm");

        this.enabledEditStudent = true;
        this.btnEditStudent.setText("Cho phép SỬA");
    } else {
        Student student = this.getStudent();
        if (student != null) {
            this.manager.getStudentManagerDB().insertStudent(student);
            this.studentModel.add(student);
            Class classSelected = (Class) this.cbbClassForStudent.getSelectedItem();
            ArrayList<Subject> alSubject = this.manager.getSubjectManager().getSubjectsByClassRoomBlockId(classSelected.getClassRoomBlockID());
            for (int i = 0; i < alSubject.size(); i++) {
                Mark newMark = new Mark(alSubject.get(i).getSubjectID(), student.getStudentID(), String.valueOf("No"), String.valueOf("No"), String.valueOf("No"), true);
                Mark containsMark = this.manager.getMarkManager().contains(newMark);
                if (containsMark == null) {
                    this.manager.getMarkManagerDB().insertMark(newMark);
                    this.markModel.add(newMark);
                }
            }

            JOptionPane.showMessageDialog(this, "Đã thêm Học Sinh mới thành công!");
            this.clearComponentsForStudent();
        }
    }
}//GEN-LAST:event_btnAddStudentActionPerformed

private void btnEditStudentActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnEditStudentActionPerformed
    if (this.enabledEditStudent) {
        this.enabledEditStudent = false;
        this.setVisibleComponentsForStudent(true);

        this.btnEditStudent.setText("Sửa");

        this.enabledAddStudent = true;
        this.btnAddStudent.setText("Cho phép THÊM");
    } else {
        if (this.tblStudentManager.getSelectedRow() >= 0) {
            Student student = this.getStudent();
            Student studentSelected = this.studentModel.get(this.tblStudentManager.getSelectedRow());
            studentSelected.setStudentName(student.getStudentName());
            studentSelected.setGender(student.isGender());
            studentSelected.setFather(student.getFather());
            studentSelected.setMother(student.getMother());
            studentSelected.setPhone(student.getPhone());
            studentSelected.setAddress(student.getAddress());
            studentSelected.setProvinceID(student.getProvinceID());
            studentSelected.setClassID(student.getClassID());

            this.manager.getStudentManagerDB().updateStudent(studentSelected);
            this.studentModel.refresh();
            JOptionPane.showMessageDialog(this, "Học Sinh đã được cập nhật thành công!");
        } else {
            JOptionPane.showMessageDialog(this, "Bạn chưa chọn Học Sinh muốn sửa!");
        }
    }
}//GEN-LAST:event_btnEditStudentActionPerformed

private void btnDeleteStudentActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnDeleteStudentActionPerformed
    int selected = this.tblStudentManager.getSelectedRow();
    if (selected >= 0) {
        Student student = this.studentModel.get(selected);
        this.manager.getStudentManagerDB().deleteStudent(student);
        this.studentModel.remove(student);
        ArrayList<Mark> alMark = this.manager.getMarkManager().getByStudentId(student.getStudentID());
        for (int i = 0; i < alMark.size(); i++) {
            this.manager.getMarkManagerDB().deleteMark(alMark.get(i));
        }
        JOptionPane.showMessageDialog(this, "Đã xóa thành công Học Sinh");
    } else {
        JOptionPane.showMessageDialog(this, "Bạn chưa chọn Học Sinh muốn xóa!");
    }
}//GEN-LAST:event_btnDeleteStudentActionPerformed

private void btnFindByStudentIDForStudentActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnFindByStudentIDForStudentActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_btnFindByStudentIDForStudentActionPerformed

private void tblStudentManagerMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_tblStudentManagerMouseClicked
    int selected = this.tblStudentManager.getSelectedRow();
    Student student = this.studentModel.get(selected);
    SimpleDateFormat dfDay = new SimpleDateFormat("dd");
    SimpleDateFormat dfMonth = new SimpleDateFormat("MM");
    SimpleDateFormat dfYear = new SimpleDateFormat("yyyy");

    this.txtStudentNameForStudent.setText(student.getStudentName());
    this.txtFatherForStudent.setText(student.getFather());
    this.txtMotherForStudent.setText(student.getMother());
    this.txtPhoneForStudent.setText(student.getPhone());
    this.txaAddressForStudent.setText(student.getAddress());
    this.cbbProvinceForStudent.setSelectedItem(this.manager.getProvinceManager().getByID(student.getProvinceID()));
    this.cbbClassForStudent.setSelectedItem(this.manager.getClassManager().getById(student.getClassID()));
    this.cbbDayForStudent.setSelectedItem(dfDay.format(student.getBirthDay()));
    this.cbbMonthForStudent.setSelectedItem(dfMonth.format(student.getBirthDay()));
    this.cbbYearForStudent.setSelectedItem(dfYear.format(student.getBirthDay()));
}//GEN-LAST:event_tblStudentManagerMouseClicked

private void btnAddMarkActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnAddMarkActionPerformed
    if (this.enabledAddMark) {
        this.enabledAddMark = false;
        this.setVisibleComponentsForMark(true);

        this.btnAddMark.setText("Thêm");

        this.enabledEditMark = true;
        this.btnEditMark.setText("Cho phép SỬA");
    } else {
        //Mark mark = new Mark(subject.getSubjectID(), student.getStudentID(), this.cbbMarkSemesterIForMark.getSelectedItem().toString(), this.cbbMarkSemesterIIForMark.getSelectedItem().toString(), this.cbbMarkSemesterIIForMark.getSelectedItem().toString(), true);
        //Mark contains = this.manager.getMarkManager().contains(mark);
//        if (contains == null) {
//            this.manager.getMarkManagerDB().insertMark(mark);
//            this.markModel.add(mark);
//            JOptionPane.showMessageDialog(this, "Điểm mới đã thêm thành công!");
//        } else if (contains.isStatus()) {
//            JOptionPane.showMessageDialog(this, "Học sinh '" + student.getStudentName() + "' đã có điểm môn '" + subject.getSubjectName() + "'");
//        } else {
//            contains.setStatus(true);
//            contains.setFirstSemesterValue(mark.getFirstSemesterValue());
//            contains.setSecondSemesterValue(mark.getSecondSemesterValue());
//            contains.setYearValue(mark.getYearValue());
//            this.manager.getMarkManagerDB().updateMark(contains);
//            JOptionPane.showMessageDialog(this, "Điểm mới đã thêm thành công!");
//            this.markModel.refresh();
//        }
    }
}//GEN-LAST:event_btnAddMarkActionPerformed

private void btnEditMarkActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnEditMarkActionPerformed
//    if (this.enabledEditMark) {
//        this.enabledEditMark = false;
//        this.setVisibleComponentsForMark(true);
//        this.cbbClassRoomBlockForMark.setEnabled(false);
//        this.cbbClassForMark.setEnabled(false);
//
//        this.btnEditMark.setText("Sửa");
//
//        this.enabledAddMark = true;
//        this.btnAddMark.setText("Cho phép THÊM");
//    } else {
//        Mark mark = this.markModel.get(selected);
//        if (mark != null) {
//            this.manager.getMarkManagerDB().updateMark(mark);
//            this.markModel.refresh();
//            JOptionPane.showMessageDialog(this, "Đã cập nhật Điểm thành công!");
//        } else {
//            JOptionPane.showMessageDialog(this, "Bạn chưa chọn Điểm muốn cập nhật!");
//        }
//    }
}//GEN-LAST:event_btnEditMarkActionPerformed

private void btnDeleteMarkActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnDeleteMarkActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_btnDeleteMarkActionPerformed

private void itemClassManagerActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_itemClassManagerActionPerformed
    this.pnlClassRoomBlockManager.setVisible(false);
    this.pnlClassManager.setVisible(true);
    this.pnlStatisticByStudent.setVisible(false);
    this.pnlProvinceManager.setVisible(false);
    this.pnlSemesterManager.setVisible(false);
    this.pnlTeacherManager.setVisible(false);
    this.pnlSubjectManager.setVisible(false);
    this.pnlStudentManager.setVisible(false);
    this.pnlMarkManager.setVisible(false);
    this.pnlLogin.setVisible(false);
    this.pnlHome.setVisible(false);
    this.pnlAccountManager.setVisible(false);
    this.pnlChangeAccount.setVisible(false);
    this.pnlStatisticByClass.setVisible(false);
}//GEN-LAST:event_itemClassManagerActionPerformed

private void itemSubjectManagerActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_itemSubjectManagerActionPerformed
    this.pnlClassRoomBlockManager.setVisible(false);
    this.pnlClassManager.setVisible(false);
    this.pnlStatisticByClass.setVisible(false);
    this.pnlProvinceManager.setVisible(false);
    this.pnlSemesterManager.setVisible(false);
    this.pnlStatisticByStudent.setVisible(false);
    this.pnlTeacherManager.setVisible(false);
    this.pnlSubjectManager.setVisible(true);
    this.pnlStudentManager.setVisible(false);
    this.pnlMarkManager.setVisible(false);
    this.pnlLogin.setVisible(false);
    this.pnlHome.setVisible(false);
    this.pnlAccountManager.setVisible(false);
    this.pnlChangeAccount.setVisible(false);
}//GEN-LAST:event_itemSubjectManagerActionPerformed

private void itemStudentManagerActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_itemStudentManagerActionPerformed
    this.pnlClassRoomBlockManager.setVisible(false);
    this.pnlClassManager.setVisible(false);
    this.pnlStatisticByClass.setVisible(false);
    this.pnlProvinceManager.setVisible(false);
    this.pnlSemesterManager.setVisible(false);
    this.pnlTeacherManager.setVisible(false);
    this.pnlSubjectManager.setVisible(false);
    this.pnlStudentManager.setVisible(true);
    this.pnlMarkManager.setVisible(false);
    this.pnlLogin.setVisible(false);
    this.pnlHome.setVisible(false);
    this.pnlAccountManager.setVisible(false);
    this.pnlChangeAccount.setVisible(false);
    this.pnlStatisticByStudent.setVisible(false);
}//GEN-LAST:event_itemStudentManagerActionPerformed

private void itemTeacherManagerActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_itemTeacherManagerActionPerformed
    this.pnlClassRoomBlockManager.setVisible(false);
    this.pnlClassManager.setVisible(false);
    this.pnlProvinceManager.setVisible(false);
    this.pnlSemesterManager.setVisible(false);
    this.pnlTeacherManager.setVisible(true);
    this.pnlSubjectManager.setVisible(false);
    this.pnlStudentManager.setVisible(false);
    this.pnlMarkManager.setVisible(false);
    this.pnlLogin.setVisible(false);
    this.pnlHome.setVisible(false);
    this.pnlChangeAccount.setVisible(false);
    this.pnlAccountManager.setVisible(false);
    this.pnlStatisticByStudent.setVisible(false);
    this.pnlStatisticByClass.setVisible(false);
}//GEN-LAST:event_itemTeacherManagerActionPerformed

private void itemClassRoomBlockManagerActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_itemClassRoomBlockManagerActionPerformed
    this.pnlClassRoomBlockManager.setVisible(true);
    this.pnlClassManager.setVisible(false);
    this.pnlStatisticByClass.setVisible(false);
    this.pnlProvinceManager.setVisible(false);
    this.pnlSemesterManager.setVisible(false);
    this.pnlTeacherManager.setVisible(false);
    this.pnlSubjectManager.setVisible(false);
    this.pnlStudentManager.setVisible(false);
    this.pnlMarkManager.setVisible(false);
    this.pnlLogin.setVisible(false);
    this.pnlHome.setVisible(false);
    this.pnlAccountManager.setVisible(false);
    this.pnlChangeAccount.setVisible(false);
    this.pnlStatisticByStudent.setVisible(false);
}//GEN-LAST:event_itemClassRoomBlockManagerActionPerformed

private void itemProvinceManagerActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_itemProvinceManagerActionPerformed
    this.pnlClassRoomBlockManager.setVisible(false);
    this.pnlClassManager.setVisible(false);
    this.pnlProvinceManager.setVisible(true);
    this.pnlSemesterManager.setVisible(false);
    this.pnlTeacherManager.setVisible(false);
    this.pnlSubjectManager.setVisible(false);
    this.pnlStudentManager.setVisible(false);
    this.pnlMarkManager.setVisible(false);
    this.pnlLogin.setVisible(false);
    this.pnlHome.setVisible(false);
    this.pnlAccountManager.setVisible(false);
    this.pnlChangeAccount.setVisible(false);
    this.pnlStatisticByStudent.setVisible(false);
    this.pnlStatisticByClass.setVisible(false);
}//GEN-LAST:event_itemProvinceManagerActionPerformed

private void itemSemesterManagerActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_itemSemesterManagerActionPerformed
    this.pnlClassRoomBlockManager.setVisible(false);
    this.pnlClassManager.setVisible(false);
    this.pnlProvinceManager.setVisible(false);
    this.pnlSemesterManager.setVisible(true);
    this.pnlTeacherManager.setVisible(false);
    this.pnlStatisticByClass.setVisible(false);
    this.pnlSubjectManager.setVisible(false);
    this.pnlStudentManager.setVisible(false);
    this.pnlMarkManager.setVisible(false);
    this.pnlLogin.setVisible(false);
    this.pnlHome.setVisible(false);
    this.pnlChangeAccount.setVisible(false);
    this.pnlStatisticByStudent.setVisible(false);
    this.pnlAccountManager.setVisible(false);
}//GEN-LAST:event_itemSemesterManagerActionPerformed

private void itemResultForStudentActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_itemResultForStudentActionPerformed
    this.pnlClassRoomBlockManager.setVisible(false);
    this.pnlClassManager.setVisible(false);
    this.pnlProvinceManager.setVisible(false);
    this.pnlSemesterManager.setVisible(false);
    this.pnlTeacherManager.setVisible(false);
    this.pnlSubjectManager.setVisible(false);
    this.pnlStudentManager.setVisible(false);
    this.pnlMarkManager.setVisible(false);
    this.pnlStatisticByClass.setVisible(false);
    this.pnlLogin.setVisible(false);
    this.pnlHome.setVisible(false);
    this.pnlChangeAccount.setVisible(false);
    this.pnlStatisticByStudent.setVisible(true);
    this.pnlAccountManager.setVisible(false);
}//GEN-LAST:event_itemResultForStudentActionPerformed

private void btnFindResultOfStudentByStudentActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnFindResultOfStudentByStudentActionPerformed
    int selected = this.cbbCriteriaByStudent.getSelectedIndex();
    if (selected == 0) {
        this.pnlAllYearByStudent.setVisible(false);
        this.pnlCurrentYearByStudent.setVisible(true);

        Student student = (Student) this.cbbStudentByStudent.getSelectedItem();

        String gender = student.isGender() ? "Nam" : "Nữ";
        Date date = student.getBirthDay();
        SimpleDateFormat df = new SimpleDateFormat("dd/MM/yyyy");
        Class c = this.manager.getClassManager().getById(student.getClassID());

        this.lblResultForStudentIDCurrentYear.setText(student.getStudentID());
        this.lblResultForStudentNameCurrentYear.setText(student.getStudentName());
        this.lblResultForGenderCurrentYear.setText(gender);
        this.lblResultForClassNameCurrentYear.setText(c.getClassName());
        this.lblResultForBirthdayCurrentYear.setText(df.format(date));

        ArrayList<Mark> alMark = this.manager.getMarkManager().getByStudentId(student.getStudentID());
        for (int i = 0; i < alMark.size(); i++) {
            Subject subject = this.manager.getSubjectManager().getById(alMark.get(i).getSubjectID());
            if (subject.getClassRoomBlockID() != c.getClassRoomBlockID()) {
                alMark.remove(i);
            }
        }

        this.resultOfStudentModel = new ResultOfStudentTableModel(alMark, manager);
        this.tblResultCurrentYearOfStudent.setModel(resultOfStudentModel);

        int mark1 = -1;
        int mark2 = -1;
        for (int i = 0; i < alMark.size(); i++) {
            Subject subject = this.manager.getSubjectManager().getById(alMark.get(i).getSubjectID());
            if (subject.getPointTypeID() == 6) {
                if (alMark.get(i).getYearValue().equals("Đ")) {
                    this.lblResultOfConduct.setText("Thực hiện đầy đủ");
                } else {
                    this.lblResultOfConduct.setText("Thực hiện chưa đầy đủ");
                }
            }
            if (subject.getSubjectName().equals("TOÁN") || subject.getSubjectName().equals("TIẾNG VIỆT")) {
                if (alMark.get(i).getYearValue().equals("No")) {
                    if (mark1 == -1) {
                        mark1 = 0;
                    } else {
                        mark2 = 0;
                    }
                } else {
                    if (mark1 == -1) {
                        mark1 = Integer.valueOf(alMark.get(i).getYearValue());
                    } else {
                        mark2 = Integer.valueOf(alMark.get(i).getYearValue());
                    }
                }
            }
        }
        if (mark1 >= 9 && mark2 >= 9) {
            this.lblResultOfAcademic.setText("LOẠI GIỎI");
        } else if ((mark1 >= 7 && mark1 < 9 && mark2 >= 7) || (mark2 >= 7 && mark2 < 9 && mark1 >= 7)) {
            this.lblResultOfAcademic.setText("LOẠI KHÁ");
        } else if ((mark1 >= 5 && mark1 < 7 && mark2 >= 5) || (mark2 >= 5 && mark2 < 7 && mark1 >= 5)) {
            this.lblResultOfAcademic.setText("LOẠI TRUNG BÌNH");
        } else {
            this.lblResultOfAcademic.setText("LOẠI YẾU");
        }
    } else {
        this.pnlAllYearByStudent.setVisible(true);
        this.pnlCurrentYearByStudent.setVisible(false);

        Student student = (Student) this.cbbStudentByStudent.getSelectedItem();

        String gender = student.isGender() ? "Nam" : "Nữ";
        Date date = student.getBirthDay();
        SimpleDateFormat df = new SimpleDateFormat("dd/MM/yyyy");
        Class c = this.manager.getClassManager().getById(student.getClassID());

        this.lblResultForStudentID1.setText(student.getStudentID());
        this.lblResultForStudentName1.setText(student.getStudentName());
        this.lblResultForGender1.setText(gender);
        this.lblResultForBirthday1.setText(df.format(date));
        this.lblResultForClassName1.setText(c.getClassName());

        ArrayList<Mark> alMark = this.manager.getMarkManager().getByStudentId(student.getStudentID());
        this.resultOfStudentModel = new ResultOfStudentTableModel(alMark, manager);
        this.tblResultOfStudentAllYear.setModel(this.resultOfStudentModel);
    }
}//GEN-LAST:event_btnFindResultOfStudentByStudentActionPerformed

private void btnFindResultOfClassActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnFindResultOfClassActionPerformed
    Class classSelected = (Class) this.cbbClassNameByClass.getSelectedItem();
    TeacherClassDetails details = this.manager.getTeacherClassDetailsManager().getByClassID(classSelected.getClassID());
    Teacher teacher = this.manager.getTeacherManager().getById(details.getTeacherID());

    ArrayList<Student> alStudent = this.manager.getStudentManager().getByClassID(classSelected.getClassID());
    this.lblClassNameStatisticByClass.setText(classSelected.getClassName());
    this.lblTeacherNameStatisticByClass.setText(teacher.getTeacherName());

    this.resultOfClassModel = new ResultOfClassTableModel(manager, alStudent, classSelected);
    this.tblResultClassByClass.setModel(this.resultOfClassModel);
}//GEN-LAST:event_btnFindResultOfClassActionPerformed

private void itemResultForClassActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_itemResultForClassActionPerformed
    this.pnlClassRoomBlockManager.setVisible(false);
    this.pnlClassManager.setVisible(false);
    this.pnlProvinceManager.setVisible(false);
    this.pnlSemesterManager.setVisible(false);
    this.pnlTeacherManager.setVisible(false);
    this.pnlSubjectManager.setVisible(false);
    this.pnlStudentManager.setVisible(false);
    this.pnlMarkManager.setVisible(false);
    this.pnlStatisticByStudent.setVisible(false);
    this.pnlStatisticByClass.setVisible(true);
    this.pnlLogin.setVisible(false);
    this.pnlHome.setVisible(false);
    this.pnlChangeAccount.setVisible(false);
    this.cbbClassNameByClass.setModel(this.classComboBoxModel);
    this.pnlAccountManager.setVisible(false);
}//GEN-LAST:event_itemResultForClassActionPerformed

private void itemLoginActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_itemLoginActionPerformed
    this.pnlClassRoomBlockManager.setVisible(false);
    this.pnlClassManager.setVisible(false);
    this.pnlProvinceManager.setVisible(false);
    this.pnlSemesterManager.setVisible(false);
    this.pnlTeacherManager.setVisible(false);
    this.pnlSubjectManager.setVisible(false);
    this.pnlStudentManager.setVisible(false);
    this.pnlMarkManager.setVisible(false);
    this.pnlStatisticByStudent.setVisible(false);
    this.pnlStatisticByClass.setVisible(false);
    this.pnlLogin.setVisible(true);
    this.txtUserName.setText("");
    this.pfPassword.setText("");
    this.pnlHome.setVisible(false);
    this.pnlChangeAccount.setVisible(false);
    this.pnlAccountManager.setVisible(false);
}//GEN-LAST:event_itemLoginActionPerformed

private void itemCloseActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_itemCloseActionPerformed
    this.dispose();
}//GEN-LAST:event_itemCloseActionPerformed
    private Account checkValidate() {
        String userName = this.txtUserName.getText().trim().toUpperCase();
        String password = new String(this.pfPassword.getPassword()).trim().toUpperCase();
        if (userName.length() == 0) {
            JOptionPane.showMessageDialog(this, "Tên đăng nhập không được để trống!");
            return null;
        } else if (password.length() == 0) {
            JOptionPane.showMessageDialog(this, "Mật khẩu không được để trống!");
            return null;
        } else {
            return this.manager.getAccountManager().checkValidate(userName, password);
        }
    }
private void btnLoginActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnLoginActionPerformed
    this.account = this.checkValidate();
    if (account != null) {
        this.manager.setAccount(account);

        this.createModelsForManagers();
        this.setComponents();
        this.createComboBoxsForTeacher();
        this.createComboBoxsForClass();
        this.createComboBoxsForSubject();
        this.createComboBoxForStudent();
        this.createComboBoxsForMark();
        this.createComboBoxForResultOfStudentAllYear();
        if (account.getAuthorization() == 2) {
            this.lblHello.setText("Xin chào: " + this.manager.getTeacherManager().getById(Integer.valueOf(account.getAccountID())).getTeacherName());
        } else {
            this.lblHello.setText("Xin chào: " + this.account.getAccountID());
        }
        this.pnlLogin.setVisible(false);
        this.itemLogin.setEnabled(false);
        this.itemLogout.setEnabled(true);
        this.itemChangeAccount.setEnabled(true);
        this.mnuManager.setEnabled(true);
        this.mnuStatistic.setEnabled(true);
        this.pnlHome.setVisible(true);

        if (this.account.getAuthorization() == 2) {
            this.itemClassRoomBlockManager.setVisible(false);
            this.itemClassManager.setVisible(false);
            this.itemProvinceManager.setVisible(false);
            this.itemSemesterManager.setVisible(false);
            this.itemTeacherManager.setVisible(false);
            this.itemSubjectManager.setVisible(false);
            this.itemStudentManager.setVisible(false);
            this.itemAccountManager.setVisible(false);
        } else {
            this.itemClassRoomBlockManager.setVisible(true);
            this.itemClassManager.setVisible(true);
            this.itemProvinceManager.setVisible(true);
            this.itemSemesterManager.setVisible(true);
            this.itemTeacherManager.setVisible(true);
            this.itemSubjectManager.setVisible(true);
            this.itemStudentManager.setVisible(true);
            this.itemAccountManager.setVisible(true);
        }
    } else {
        JOptionPane.showMessageDialog(this, "Đăng nhập thất bại. Mời bạn kiểm tra lại thông tin!");
    }
}//GEN-LAST:event_btnLoginActionPerformed

private void btnChangeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnChangeActionPerformed
    String password = new String(this.pfNewPassword.getPassword()).trim().toUpperCase();
    if (password.length() > 0) {
        this.account.setPassword(password);
        this.manager.getAccountManagerDB().updateAccount(account);
        JOptionPane.showMessageDialog(this, "Mật khẩu đã được thay đổi thành công!");
        this.pnlChangeAccount.setVisible(false);
        this.pnlHome.setVisible(true);
    } else {
        JOptionPane.showMessageDialog(this, "Mật khẩu không được để trống!");
    }
}//GEN-LAST:event_btnChangeActionPerformed

private void itemChangeAccountActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_itemChangeAccountActionPerformed
    this.pnlClassRoomBlockManager.setVisible(false);
    this.pnlClassManager.setVisible(false);
    this.pnlProvinceManager.setVisible(false);
    this.pnlSemesterManager.setVisible(false);
    this.pnlTeacherManager.setVisible(false);
    this.pnlSubjectManager.setVisible(false);
    this.pnlStudentManager.setVisible(false);
    this.pnlMarkManager.setVisible(false);
    this.pnlStatisticByStudent.setVisible(false);
    this.pnlStatisticByClass.setVisible(false);
    this.pnlLogin.setVisible(false);
    this.pnlHome.setVisible(false);
    this.pnlChangeAccount.setVisible(true);
    this.txtChangeUserName.setText(this.account.getAccountID());
    this.pfOldPassword.setText(this.account.getPassword());
    this.pfOldPassword.setEditable(false);
}//GEN-LAST:event_itemChangeAccountActionPerformed

private void cbbClassByStudentItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_cbbClassByStudentItemStateChanged
    Class classSelected = (Class) this.cbbClassByStudent.getSelectedItem();
    if (classSelected != null) {
        this.studentByStudentModel.removeAllElements();
        for (int i = 0; i < this.manager.getStudentManager().size(); i++) {
            if (this.manager.getStudentManager().get(i).getClassID().equals(classSelected.getClassID())) {
                this.studentByStudentModel.addElement(this.manager.getStudentManager().get(i));
            }
        }
        this.cbbStudentByStudent.setModel(this.studentByStudentModel);
    }
}//GEN-LAST:event_cbbClassByStudentItemStateChanged

private void itemAccountManagerActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_itemAccountManagerActionPerformed
    this.pnlClassRoomBlockManager.setVisible(false);
    this.pnlClassManager.setVisible(false);
    this.pnlProvinceManager.setVisible(false);
    this.pnlSemesterManager.setVisible(false);
    this.pnlTeacherManager.setVisible(false);
    this.pnlSubjectManager.setVisible(false);
    this.pnlStudentManager.setVisible(false);
    this.pnlMarkManager.setVisible(false);
    this.pnlStatisticByStudent.setVisible(false);
    this.pnlStatisticByClass.setVisible(false);
    this.pnlLogin.setVisible(false);
    this.pnlHome.setVisible(false);
    this.pnlChangeAccount.setVisible(false);
    this.txtChangeUserName.setText(this.account.getAccountID());
    this.pfOldPassword.setText(this.account.getPassword());
    this.pfOldPassword.setEditable(false);
    this.pnlAccountManager.setVisible(true);
}//GEN-LAST:event_itemAccountManagerActionPerformed

private void btnAddAccountActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnAddAccountActionPerformed
    if (this.enabledAddAccount) {
        this.enabledAddAccount = false;
        this.txtAccountIDForAccount.setText("");
        this.txtAccountIDForAccount.setEditable(true);

        this.btnAddAccount.setText("Thêm");
    } else {
        String accountID = this.txtAccountIDForAccount.getText().trim().toUpperCase();
        if (this.manager.getAccountManager().getByName(accountID) == null) {
            Account accountNew = new Account(accountID, "123456", 1, true);
            this.manager.getAccountManagerDB().insertAccount(accountNew);
            this.accountModel.add(accountNew);
            JOptionPane.showMessageDialog(this, "Đã thêm account mới thành công!");
            this.txtAccountIDForAccount.setText("");
        }
    }
}//GEN-LAST:event_btnAddAccountActionPerformed

private void btnResetAccountActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnResetAccountActionPerformed
    Account accountSelected = (Account) this.listAccountManager.getSelectedValue();
    if (accountSelected == null) {
        JOptionPane.showMessageDialog(this, "Bạn chưa chọn tài khoản muốn Reset!");
    } else {
        accountSelected.setPassword("123456");
        this.manager.getAccountManagerDB().updateAccount(accountSelected);
        JOptionPane.showMessageDialog(this, "Đã reset tài khoản thành công!");
    }
}//GEN-LAST:event_btnResetAccountActionPerformed

private void btnDeleteAccountActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnDeleteAccountActionPerformed
    Account accountSelected = (Account) this.listAccountManager.getSelectedValue();
    if (accountSelected == null) {
        JOptionPane.showMessageDialog(this, "Bạn chưa chọn tài khoản muốn Xóa!");
    } else {
        accountSelected.setStatus(false);
        this.manager.getAccountManagerDB().updateAccount(accountSelected);
        this.accountModel.remove(accountSelected);
        JOptionPane.showMessageDialog(this, "Đã xóa tài khoản thành công!");
    }
}//GEN-LAST:event_btnDeleteAccountActionPerformed

private void btnFindByAccountIDActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnFindByAccountIDActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_btnFindByAccountIDActionPerformed

private void listAccountManagerValueChanged(javax.swing.event.ListSelectionEvent evt) {//GEN-FIRST:event_listAccountManagerValueChanged
    Account accountSelected = (Account) this.listAccountManager.getSelectedValue();
    if (accountSelected != null) {
        this.txtAccountIDForAccount.setText(accountSelected.getAccountID());
    }
}//GEN-LAST:event_listAccountManagerValueChanged

private void itemLogoutActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_itemLogoutActionPerformed
    this.account = null;
    this.lblHello.setText("Xin chào: KHÁCH");

    this.itemLogout.setEnabled(false);
    this.itemLogin.setEnabled(true);
    this.itemChangeAccount.setEnabled(false);
    this.mnuManager.setEnabled(false);
    this.mnuStatistic.setEnabled(false);
    this.pnlClassRoomBlockManager.setVisible(false);
    this.pnlClassManager.setVisible(false);
    this.pnlProvinceManager.setVisible(false);
    this.pnlSemesterManager.setVisible(false);
    this.pnlTeacherManager.setVisible(false);
    this.pnlSubjectManager.setVisible(false);
    this.pnlStudentManager.setVisible(false);
    this.pnlMarkManager.setVisible(false);
    this.pnlStatisticByStudent.setVisible(false);
    this.pnlStatisticByClass.setVisible(false);
    this.pnlLogin.setVisible(true);
    this.pnlChangeAccount.setVisible(false);
    this.pnlAccountManager.setVisible(false);
    this.pnlHome.setVisible(true);
}//GEN-LAST:event_itemLogoutActionPerformed

private void btnToPrintByClassActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnToPrintByClassActionPerformed
    int col = this.tblResultClassByClass.getColumnCount();
    Class classSelected = (Class) this.cbbClassNameByClass.getSelectedItem();
    if (col == 12) {
        String[] title1 = {"STT", "Tên Học Sinh", "Toán", "Tiếng Việt", "Đạo Đức", "TN & XH", "Âm Nhạc", "Mĩ Thuật", "Thủ Công", "Thể Dục", "Học Lực", "Hạnh Kiểm"};

        Workbook wb = new HSSFWorkbook();
        Map<String, CellStyle> styles = createStyles(wb);

        org.apache.poi.ss.usermodel.Sheet sheet = wb.createSheet("Timesheet");
        PrintSetup printSetup = sheet.getPrintSetup();
        printSetup.setLandscape(true);
        sheet.setFitToPage(true);
        sheet.setHorizontallyCenter(true);

        // Title Rows

        Row titleRow1 = sheet.createRow(0);
        titleRow1.setHeightInPoints(40);
        org.apache.poi.ss.usermodel.Cell titleCell = titleRow1.createCell(0);
        titleCell.setCellValue("Trường Tiểu Học Văn Khê C - Mê Linh - Hà Nội");
        titleCell.setCellStyle(styles.get("title1"));
        sheet.addMergedRegion(CellRangeAddress.valueOf("$A$1:$L$1"));

        Row titleRow2 = sheet.createRow(1);
        titleRow2.setHeightInPoints(30);
        org.apache.poi.ss.usermodel.Cell titleCell2 = titleRow2.createCell(0);
        titleCell2.setCellValue("Lớp " + classSelected.getClassName() + ". Năm học: " + classSelected.getFromYear() + "-" + classSelected.getToYear());
        titleCell2.setCellStyle(styles.get("title2"));
        sheet.addMergedRegion(CellRangeAddress.valueOf("$A$2:$L$2"));

        // Header Rows
        Row headerRow = sheet.createRow(2);
        headerRow.setHeightInPoints(40);
        org.apache.poi.ss.usermodel.Cell headerCell;
        for (int i = 0; i < title1.length; i++) {
            headerCell = headerRow.createCell(i);
            headerCell.setCellValue(title1[i]);
            headerCell.setCellStyle(styles.get("header"));
        }
        int rownum = 3;
        for (int i = 0; i < this.resultOfClassModel.getRowCount(); i++) {
            Row row = sheet.createRow(rownum++);
            for (int j = 0; j < title1.length; j++) {
                org.apache.poi.ss.usermodel.Cell cell = row.createCell(j);
                cell.setCellValue(this.resultOfClassModel.getValueAt(i, j).toString());
                cell.setCellStyle(styles.get("cell"));
            }
        }

        rownum++;
        Row dayRow = sheet.createRow(rownum++);
        dayRow.setHeightInPoints(25);
        org.apache.poi.ss.usermodel.Cell dayCell = dayRow.createCell(9);
        Calendar calendar = new GregorianCalendar();
        int y = calendar.get(Calendar.YEAR);
        int m = calendar.get(Calendar.MONTH);
        int d = calendar.get(Calendar.DAY_OF_MONTH);
        dayCell.setCellValue("Ngày " + d + " Tháng " + m + " Năm " + y);
        dayCell.setCellStyle(styles.get("formula"));
        sheet.addMergedRegion(CellRangeAddress.valueOf("$J$" + rownum + ":$L$" + rownum));

        Row teacherRow = sheet.createRow(rownum++);
        org.apache.poi.ss.usermodel.Cell teacherCell = teacherRow.createCell(9);

        TeacherClassDetails details = this.manager.getTeacherClassDetailsManager().getByClassID(classSelected.getClassID());
        Teacher teacher = this.manager.getTeacherManager().getById(details.getTeacherID());

        teacherCell.setCellValue(teacher.getTeacherName());
        teacherCell.setCellStyle(styles.get("cell"));
        sheet.addMergedRegion(CellRangeAddress.valueOf("$J$" + rownum + ":$L$" + rownum));

        // ket thuc
        sheet.setColumnWidth(0, 10 * 256);
        sheet.setColumnWidth(1, 30 * 256);
        sheet.setColumnWidth(10, 30 * 256);
        sheet.setColumnWidth(11, 30 * 256);
        String file = classSelected.getClassID() + ".xls";
        try {
            FileOutputStream out = new FileOutputStream(file);
            wb.write(out);
            out.close();
        } catch (FileNotFoundException ex) {
            Logger.getLogger(JFrame_SchoolManager.class.getName()).log(Level.SEVERE, null, ex);
        } catch (IOException ex) {
            Logger.getLogger(JFrame_SchoolManager.class.getName()).log(Level.SEVERE, null, ex);
        }
    } else {
        String[] title2 = {"STT", "Tên Học Sinh", "Toán", "Tiếng Việt", "Đạo Đức", "Khoa Học", "Lịch Sử & Địa Lý", "Âm Nhạc", "Mĩ Thuật", "Thủ Công", "Kĩ Thuật", "Thể Dục", "Tin Học", "Tiếng Anh", "Học Lực", "Hạnh Kiểm"};
        Workbook wb = new HSSFWorkbook();
        Map<String, CellStyle> styles = createStyles(wb);

        org.apache.poi.ss.usermodel.Sheet sheet = wb.createSheet("Timesheet");
        PrintSetup printSetup = sheet.getPrintSetup();
        printSetup.setLandscape(true);
        sheet.setFitToPage(true);
        sheet.setHorizontallyCenter(true);

        // Title Rows
        Row titleRow1 = sheet.createRow(0);
        titleRow1.setHeightInPoints(40);
        org.apache.poi.ss.usermodel.Cell titleCell = titleRow1.createCell(0);
        titleCell.setCellValue("Trường Tiểu Học Văn Khê C - Mê Linh - Hà Nội");
        titleCell.setCellStyle(styles.get("title1"));
        sheet.addMergedRegion(CellRangeAddress.valueOf("$A$1:$M$1"));

        Row titleRow2 = sheet.createRow(1);
        titleRow2.setHeightInPoints(30);
        org.apache.poi.ss.usermodel.Cell titleCell2 = titleRow2.createCell(0);
        titleCell2.setCellValue("Lớp " + classSelected.getClassName() + ". Năm học: " + classSelected.getFromYear() + "-" + classSelected.getToYear());
        titleCell2.setCellStyle(styles.get("title2"));
        sheet.addMergedRegion(CellRangeAddress.valueOf("$A$2:$M$2"));

        // Header Rows
        Row headerRow = sheet.createRow(2);
        headerRow.setHeightInPoints(40);
        org.apache.poi.ss.usermodel.Cell headerCell;
        for (int i = 0; i < title2.length; i++) {
            headerCell = headerRow.createCell(i);
            headerCell.setCellValue(title2[i]);
            headerCell.setCellStyle(styles.get("header"));
        }
        int rownum = 3;
        for (int i = 0; i < this.resultOfClassModel.getRowCount(); i++) {
            Row row = sheet.createRow(rownum++);
            for (int j = 0; j < title2.length; j++) {
                org.apache.poi.ss.usermodel.Cell cell = row.createCell(j);
                cell.setCellValue(this.resultOfClassModel.getValueAt(i, j).toString());
                cell.setCellStyle(styles.get("cell"));
            }
        }

        rownum++;
        Row dayRow = sheet.createRow(rownum++);
        dayRow.setHeightInPoints(25);
        org.apache.poi.ss.usermodel.Cell dayCell = dayRow.createCell(9);
        Calendar calendar = new GregorianCalendar();
        int y = calendar.get(Calendar.YEAR);
        int m = calendar.get(Calendar.MONTH);
        int d = calendar.get(Calendar.DAY_OF_MONTH);
        dayCell.setCellValue("Ngày " + d + " Tháng " + m + " Năm " + y);
        dayCell.setCellStyle(styles.get("formula"));
        sheet.addMergedRegion(CellRangeAddress.valueOf("$J$" + rownum + ":$L$" + rownum));

        Row teacherRow = sheet.createRow(rownum++);
        org.apache.poi.ss.usermodel.Cell teacherCell = teacherRow.createCell(9);

        TeacherClassDetails details = this.manager.getTeacherClassDetailsManager().getByClassID(classSelected.getClassID());
        Teacher teacher = this.manager.getTeacherManager().getById(details.getTeacherID());

        teacherCell.setCellValue(teacher.getTeacherName());
        teacherCell.setCellStyle(styles.get("cell"));
        sheet.addMergedRegion(CellRangeAddress.valueOf("$J$" + rownum + ":$L$" + rownum));

        // ket thuc
        sheet.setColumnWidth(0, 10 * 256);
        sheet.setColumnWidth(1, 30 * 256);
        sheet.setColumnWidth(15, 30 * 256);
        sheet.setColumnWidth(16, 30 * 256);
        String file = classSelected.getClassID() + ".xls";
        try {
            FileOutputStream out = new FileOutputStream(file);
            wb.write(out);
            out.close();
        } catch (FileNotFoundException ex) {
            Logger.getLogger(JFrame_SchoolManager.class.getName()).log(Level.SEVERE, null, ex);
        } catch (IOException ex) {
            Logger.getLogger(JFrame_SchoolManager.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
}//GEN-LAST:event_btnToPrintByClassActionPerformed

private void btnToPrintByStudentActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnToPrintByStudentActionPerformed
    Class classSelected = (Class) this.cbbClassByStudent.getSelectedItem();

    if (classSelected.getClassRoomBlockID() <= 3) {
        Workbook wb = new HSSFWorkbook();
        Map<String, CellStyle> styles = createStyles(wb);

        org.apache.poi.ss.usermodel.Sheet sheet = wb.createSheet("Timesheet");
        PrintSetup printSetup = sheet.getPrintSetup();
        printSetup.setLandscape(true);
        sheet.setFitToPage(true);
        sheet.setHorizontallyCenter(true);

        // Title Rows

        Row titleRow1 = sheet.createRow(0);
        titleRow1.setHeightInPoints(30);
        org.apache.poi.ss.usermodel.Cell titleCell = titleRow1.createCell(0);
        titleCell.setCellValue("PHÒNG GIÁO DỤC & ĐÀO TẠO MÊ LINH");
        titleCell.setCellStyle(styles.get("header"));
        sheet.addMergedRegion(CellRangeAddress.valueOf("$A$1:$F$1"));

        Row titleRow2 = sheet.createRow(1);
        titleRow2.setHeightInPoints(20);
        org.apache.poi.ss.usermodel.Cell titleCell2 = titleRow2.createCell(0);
        titleCell2.setCellValue("Trường Tiểu Học Văn Khê C - Mê Linh - Hà Nội");
        titleCell2.setCellStyle(styles.get("cell1"));
        sheet.addMergedRegion(CellRangeAddress.valueOf("$A$2:$F$2"));

        Row titleRow3 = sheet.createRow(2);
        titleRow3.setHeightInPoints(1);
        org.apache.poi.ss.usermodel.Cell brCell1 = titleRow3.createCell(1);
        org.apache.poi.ss.usermodel.Cell brCell2 = titleRow3.createCell(2);
        org.apache.poi.ss.usermodel.Cell brCell3 = titleRow3.createCell(3);
        org.apache.poi.ss.usermodel.Cell brCell4 = titleRow3.createCell(4);
        brCell1.setCellStyle(styles.get("title5"));
        brCell2.setCellStyle(styles.get("title5"));
        brCell3.setCellStyle(styles.get("title5"));
        brCell4.setCellStyle(styles.get("title5"));

        Row titleRow4 = sheet.createRow(3);
        titleRow4.setHeightInPoints(40);
        org.apache.poi.ss.usermodel.Cell titleCell4 = titleRow4.createCell(0);
        Class selected = (Class) this.cbbClassByStudent.getSelectedItem();
        titleCell4.setCellValue("TỔNG HỢP CHUNG KẾT QUẢ CUỐI NĂM HỌC " + selected.getClassName());
        titleCell4.setCellStyle(styles.get("title4"));
        sheet.addMergedRegion(CellRangeAddress.valueOf("$A$4:$F$4"));

        Row titleRow5 = sheet.createRow(4);
        titleRow5.setHeightInPoints(20);
        org.apache.poi.ss.usermodel.Cell titleCell5 = titleRow5.createCell(0);
        titleCell5.setCellValue("Họ tên học sinh: " + this.lblResultForStudentNameCurrentYear.getText());
        titleCell5.setCellStyle(styles.get("cell2"));
        sheet.addMergedRegion(CellRangeAddress.valueOf("$A$5:$B$5"));

        Row titleRow6 = sheet.createRow(5);
        titleRow6.setHeightInPoints(20);
        org.apache.poi.ss.usermodel.Cell titleCell6 = titleRow6.createCell(0);
        titleCell6.setCellValue("Lớp: " + this.lblResultForClassNameCurrentYear.getText());
        titleCell6.setCellStyle(styles.get("cell2"));
        sheet.addMergedRegion(CellRangeAddress.valueOf("$A$6:$B$6"));

        // Header Rows

        Row headerRow = sheet.createRow(6);
        org.apache.poi.ss.usermodel.Cell headerCell1 = headerRow.createCell(0);
        headerCell1.setCellValue("Môn");
        headerCell1.setCellStyle(styles.get("header"));
        org.apache.poi.ss.usermodel.Cell headerCell2 = headerRow.createCell(1);
        headerCell2.setCellValue("Điểm HKI (Các môn đánh giá bằng điểm số)");
        headerCell2.setCellStyle(styles.get("header"));
        org.apache.poi.ss.usermodel.Cell headerCell3 = headerRow.createCell(2);
        headerCell3.setCellValue("Xếp loại cuối HKI");
        headerCell3.setCellStyle(styles.get("header"));
        org.apache.poi.ss.usermodel.Cell headerCell4 = headerRow.createCell(3);
        headerCell4.setCellValue("Điểm cuối năm (Các môn đánh giá bằng điểm số)");
        headerCell4.setCellStyle(styles.get("header"));
        org.apache.poi.ss.usermodel.Cell headerCell5 = headerRow.createCell(4);
        headerCell5.setCellValue("Xếp loại cuối năm");
        headerCell5.setCellStyle(styles.get("header"));
        org.apache.poi.ss.usermodel.Cell headerCell6 = headerRow.createCell(5);
        headerCell6.setCellValue("Nhận xét");
        headerCell6.setCellStyle(styles.get("header"));
        int rownum = 7;

        for (int i = 0; i < 9; i++) {
            Row row = sheet.createRow(rownum++);
            org.apache.poi.ss.usermodel.Cell cell1 = row.createCell(0);
            cell1.setCellValue(this.resultOfStudentModel.getValueAt(i, 1).toString());
            cell1.setCellStyle(styles.get("cell"));

            org.apache.poi.ss.usermodel.Cell cell2 = row.createCell(1);
            cell2.setCellValue(this.resultOfStudentModel.getValueAt(i, 2).toString());
            cell2.setCellStyle(styles.get("cell"));

            int mark = 0;
            try {
                mark = Integer.valueOf(this.resultOfStudentModel.getValueAt(i, 2).toString());
            } catch (Exception ex) {
            }
            org.apache.poi.ss.usermodel.Cell cell3 = row.createCell(2);
            if (mark != 0) {

                if (mark <= 10 && mark > 8) {
                    cell3.setCellValue("LOẠI GIỎI");
                } else if (mark >= 7) {
                    cell3.setCellValue("LOẠI KHÁ");
                } else if (mark >= 5) {
                    cell3.setCellValue("LOẠI TRUNG BÌNH");
                } else {
                    cell3.setCellValue("LOẠI YẾU");
                }

            } else {
                cell3.setCellValue("");
            }
            cell3.setCellStyle(styles.get("cell"));


            org.apache.poi.ss.usermodel.Cell cell4 = row.createCell(3);
            cell4.setCellValue(this.resultOfStudentModel.getValueAt(i, 4).toString());
            cell4.setCellStyle(styles.get("cell"));

            org.apache.poi.ss.usermodel.Cell cell5 = row.createCell(4);
            int mark1 = 0;
            try {
                mark1 = Integer.valueOf(this.resultOfStudentModel.getValueAt(i, 2).toString());
            } catch (Exception ex) {
            }
            if (mark1 != 0) {

                if (mark1 <= 10 && mark1 > 8) {
                    cell5.setCellValue("LOẠI GIỎI");
                } else if (mark1 >= 7) {
                    cell5.setCellValue("LOẠI KHÁ");
                } else if (mark1 >= 5) {
                    cell5.setCellValue("LOẠI TRUNG BÌNH");
                } else {
                    cell5.setCellValue("LOẠI YẾU");
                }

            } else {
                cell5.setCellValue("");
            }
            cell5.setCellStyle(styles.get("cell"));

            org.apache.poi.ss.usermodel.Cell cell6 = row.createCell(5);
            cell6.setCellValue("");
            cell6.setCellStyle(styles.get("cell"));
        }

        Row titleRow17 = sheet.createRow(17);
        titleRow17.setHeightInPoints(30);
        org.apache.poi.ss.usermodel.Cell resultCell0 = titleRow17.createCell(0);
        resultCell0.setCellValue("Xếp loại học lực chung");
        resultCell0.setCellStyle(styles.get("header"));
        org.apache.poi.ss.usermodel.Cell resultCell1 = titleRow17.createCell(1);
        resultCell1.setCellValue("Xếp loại hạnh kiểm");
        resultCell1.setCellStyle(styles.get("header"));
        org.apache.poi.ss.usermodel.Cell resultCell2 = titleRow17.createCell(2);
        resultCell2.setCellValue("Lên lớp thẳng (Thi lại, lưu ban)");
        resultCell2.setCellStyle(styles.get("header"));
        org.apache.poi.ss.usermodel.Cell resultCell3 = titleRow17.createCell(3);
        resultCell3.setCellValue("Danh hiệu");
        resultCell3.setCellStyle(styles.get("header"));
        org.apache.poi.ss.usermodel.Cell resultCell4 = titleRow17.createCell(4);
        resultCell4.setCellValue("Khen thưởng từng mặt");
        resultCell4.setCellStyle(styles.get("header"));

        Row titleRow18 = sheet.createRow(18);
        titleRow18.setHeightInPoints(30);
        org.apache.poi.ss.usermodel.Cell result0 = titleRow18.createCell(0);
        result0.setCellValue(this.lblResultOfConduct.getText());
        result0.setCellStyle(styles.get("cell"));
        org.apache.poi.ss.usermodel.Cell result1 = titleRow18.createCell(1);
        result1.setCellValue(this.lblResultOfAcademic.getText());
        result1.setCellStyle(styles.get("cell"));
        org.apache.poi.ss.usermodel.Cell result2 = titleRow18.createCell(2);
        result2.setCellValue("");
        result2.setCellStyle(styles.get("cell"));
        org.apache.poi.ss.usermodel.Cell result3 = titleRow18.createCell(3);
        result3.setCellValue("");
        result3.setCellStyle(styles.get("cell"));
        org.apache.poi.ss.usermodel.Cell result4 = titleRow18.createCell(4);
        result4.setCellValue("");
        result4.setCellStyle(styles.get("cell"));

        Row titleRow20 = sheet.createRow(20);
        titleRow20.setHeightInPoints(25);
        org.apache.poi.ss.usermodel.Cell result20 = titleRow20.createCell(0);
        result20.setCellValue("Nhận xét của giáo viên:");
        result20.setCellStyle(styles.get("header"));
        sheet.addMergedRegion(CellRangeAddress.valueOf("$A$21:$E$21"));

        Row titleRow22 = sheet.createRow(22);
        org.apache.poi.ss.usermodel.Cell result22 = titleRow22.createCell(0);
        result22.setCellValue("- " + this.txaCommentOfTeacher.getText());
        result22.setCellStyle(styles.get("cell2"));
        sheet.addMergedRegion(CellRangeAddress.valueOf("$A$23:$E$23"));

        Row titleRow24 = sheet.createRow(25);
        titleRow24.setHeightInPoints(1);
        org.apache.poi.ss.usermodel.Cell brCell01 = titleRow24.createCell(0);
        org.apache.poi.ss.usermodel.Cell brCell11 = titleRow24.createCell(1);
        org.apache.poi.ss.usermodel.Cell brCell21 = titleRow24.createCell(2);
        org.apache.poi.ss.usermodel.Cell brCell31 = titleRow24.createCell(3);
        org.apache.poi.ss.usermodel.Cell brCell41 = titleRow24.createCell(4);
        brCell01.setCellStyle(styles.get("title5"));
        brCell11.setCellStyle(styles.get("title5"));
        brCell21.setCellStyle(styles.get("title5"));
        brCell31.setCellStyle(styles.get("title5"));
        brCell41.setCellStyle(styles.get("title5"));

        Calendar calendar = new GregorianCalendar();
        int y = calendar.get(Calendar.YEAR);
        int m = calendar.get(Calendar.MONTH);
        int d = calendar.get(Calendar.DAY_OF_MONTH);

        Row titleRow25 = sheet.createRow(26);
        org.apache.poi.ss.usermodel.Cell result25 = titleRow25.createCell(0);
        result25.setCellValue("Ngày " + d + " tháng " + m + " năm " + y);
        result25.setCellStyle(styles.get("cell1"));
        sheet.addMergedRegion(CellRangeAddress.valueOf("$A$27:$B$27"));

        org.apache.poi.ss.usermodel.Cell result26 = titleRow25.createCell(2);
        result26.setCellValue("Ngày " + d + " tháng " + m + " năm " + y);
        result26.setCellStyle(styles.get("cell1"));
        sheet.addMergedRegion(CellRangeAddress.valueOf("$C$27:$E$27"));

        Row titleRow26 = sheet.createRow(27);
        org.apache.poi.ss.usermodel.Cell result271 = titleRow26.createCell(0);
        result271.setCellValue("HIỆU TRƯỞNG");
        result271.setCellStyle(styles.get("title2"));
        sheet.addMergedRegion(CellRangeAddress.valueOf("$A$28:$B$28"));

        org.apache.poi.ss.usermodel.Cell result281 = titleRow26.createCell(2);
        result281.setCellValue("Giáo Viên Chủ Nhiệm");
        result281.setCellStyle(styles.get("cell1"));
        sheet.addMergedRegion(CellRangeAddress.valueOf("$C$28:$E$28"));

        Row titleRow27 = sheet.createRow(28);
        org.apache.poi.ss.usermodel.Cell result27 = titleRow27.createCell(0);
        result27.setCellValue("");
        result27.setCellStyle(styles.get("title2"));
        sheet.addMergedRegion(CellRangeAddress.valueOf("$A$29:$B$29"));

        org.apache.poi.ss.usermodel.Cell result28 = titleRow27.createCell(2);
        result28.setCellValue(this.manager.getTeacherManager().getById(this.manager.getTeacherClassDetailsManager().getByClassID(classSelected.getClassID()).getTeacherID()).getTeacherName());
        result28.setCellStyle(styles.get("cell1"));
        sheet.addMergedRegion(CellRangeAddress.valueOf("$C$29:$E$29"));

        // ket thuc
        sheet.setColumnWidth(0, 30 * 256);
        sheet.setColumnWidth(1, 30 * 256);
        sheet.setColumnWidth(2, 20 * 256);
        sheet.setColumnWidth(3, 30 * 256);
        sheet.setColumnWidth(4, 30 * 256);
        sheet.setColumnWidth(5, 30 * 256);
        sheet.setColumnWidth(6, 30 * 256);
        Student student = (Student) this.cbbStudentByStudent.getSelectedItem();
        String file = student.getStudentID() + "_" + this.lblResultForClassNameCurrentYear.getText() + ".xls";
        try {
            FileOutputStream out = new FileOutputStream(file);
            wb.write(out);
            out.close();
        } catch (FileNotFoundException ex) {
            Logger.getLogger(JFrame_SchoolManager.class.getName()).log(Level.SEVERE, null, ex);
        } catch (IOException ex) {
            Logger.getLogger(JFrame_SchoolManager.class.getName()).log(Level.SEVERE, null, ex);
        }
    } else {
        String[] title2 = {"STT", "Tên Học Sinh", "Toán", "Tiếng Việt", "Đạo Đức", "Khoa Học", "Lịch Sử & Địa Lý", "Âm Nhạc", "Mĩ Thuật", "Thủ Công", "Kĩ Thuật", "Thể Dục", "Tin Học", "Tiếng Anh", "Học Lực", "Hạnh Kiểm"};
        Workbook wb = new HSSFWorkbook();
        Map<String, CellStyle> styles = createStyles(wb);

        org.apache.poi.ss.usermodel.Sheet sheet = wb.createSheet("Timesheet");
        PrintSetup printSetup = sheet.getPrintSetup();
        printSetup.setLandscape(true);
        sheet.setFitToPage(true);
        sheet.setHorizontallyCenter(true);

        // Title Rows

        Row titleRow1 = sheet.createRow(0);
        titleRow1.setHeightInPoints(40);
        org.apache.poi.ss.usermodel.Cell titleCell = titleRow1.createCell(0);
        titleCell.setCellValue("Trường Tiểu Học Văn Khê C - Mê Linh - Hà Nội");
        titleCell.setCellStyle(styles.get("title1"));
        sheet.addMergedRegion(CellRangeAddress.valueOf("$A$1:$M$1"));

        Row titleRow2 = sheet.createRow(1);
        titleRow2.setHeightInPoints(30);
        org.apache.poi.ss.usermodel.Cell titleCell2 = titleRow2.createCell(0);
        titleCell2.setCellValue("Lớp " + classSelected.getClassName() + ". Năm học: " + classSelected.getFromYear() + "-" + classSelected.getToYear());
        titleCell2.setCellStyle(styles.get("title2"));
        sheet.addMergedRegion(CellRangeAddress.valueOf("$A$2:$M$2"));

        // Header Rows
        Row headerRow = sheet.createRow(2);
        headerRow.setHeightInPoints(40);
        org.apache.poi.ss.usermodel.Cell headerCell;
    }
}//GEN-LAST:event_btnToPrintByStudentActionPerformed

private void listClassRoomBlockForMarkMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_listClassRoomBlockForMarkMouseClicked
    ClassRoomBlock block = (ClassRoomBlock) this.listClassRoomBlockForMark.getSelectedValue();
    this.setListsForMark(block);
    this.setListSubjectForMark(block);
}//GEN-LAST:event_listClassRoomBlockForMarkMouseClicked
    private DefaultComboBoxModel markSemesterISubject1Model;
    private DefaultComboBoxModel markSemesterISubject2Model;
    private DefaultComboBoxModel markSemesterISubject3Model;
    private DefaultComboBoxModel markSemesterISubject4Model;
    private DefaultComboBoxModel markSemesterISubject5Model;
    private DefaultComboBoxModel markSemesterISubject6Model;
    private DefaultComboBoxModel markSemesterISubject7Model;
    private DefaultComboBoxModel markSemesterISubject8Model;
    private DefaultComboBoxModel markSemesterISubject9Model;
    private DefaultComboBoxModel markSemesterISubject10Model;
    private DefaultComboBoxModel markSemesterISubject11Model;
    private DefaultComboBoxModel markSemesterISubject12Model;
    private DefaultComboBoxModel markSemesterIISubject1Model;
    private DefaultComboBoxModel markSemesterIISubject2Model;
    private DefaultComboBoxModel markSemesterIISubject3Model;
    private DefaultComboBoxModel markSemesterIISubject4Model;
    private DefaultComboBoxModel markSemesterIISubject5Model;
    private DefaultComboBoxModel markSemesterIISubject6Model;
    private DefaultComboBoxModel markSemesterIISubject7Model;
    private DefaultComboBoxModel markSemesterIISubject8Model;
    private DefaultComboBoxModel markSemesterIISubject9Model;
    private DefaultComboBoxModel markSemesterIISubject10Model;
    private DefaultComboBoxModel markSemesterIISubject11Model;
    private DefaultComboBoxModel markSemesterIISubject12Model;

private void listStudentForMarkMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_listStudentForMarkMouseClicked
    Student student = (Student) this.listStudentForMark.getSelectedValue();
    Class selected = (Class) this.listClassForMark.getSelectedValue();
    this.setComboBoxForMarks(student, selected);
}//GEN-LAST:event_listStudentForMarkMouseClicked

private void listClassForMarkMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_listClassForMarkMouseClicked
    Class selected = (Class) this.listClassForMark.getSelectedValue();
    this.setListStudentForMark(selected);
}//GEN-LAST:event_listClassForMarkMouseClicked

private void rdBySubjectMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_rdBySubjectMouseClicked
    this.pnlShowMarkBySubject.setVisible(true);
    this.pnlShowMarkByStudent.setVisible(false);
    this.listStudentForMark.setEnabled(false);
    this.listSubjectByClassRoomBlock.setEnabled(true);
}//GEN-LAST:event_rdBySubjectMouseClicked

private void rdByStudentMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_rdByStudentMouseClicked
    this.pnlShowMarkBySubject.setVisible(false);
    this.pnlShowMarkByStudent.setVisible(true);
    this.listStudentForMark.setEnabled(true);
    this.listSubjectByClassRoomBlock.setEnabled(false);
}//GEN-LAST:event_rdByStudentMouseClicked

private void listSubjectByClassRoomBlockMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_listSubjectByClassRoomBlockMouseClicked
    this.count = 0;

    Subject subject = (Subject) this.listSubjectByClassRoomBlock.getSelectedValue();
    Class selected = (Class) this.listClassForMark.getSelectedValue();
    ArrayList<Student> alStudent = null;
    
    if(selected != null) {
        alStudent = this.manager.getStudentManager().getByClassID(selected.getClassID());
    }

    HashMap<Student, Mark> map = new HashMap<Student, Mark>();

    if (alStudent != null && alStudent.size() > 0) {
        for (Student student : alStudent) {
            Mark mark = this.manager.getMarkManager().getMark(subject.getSubjectID(), student);
            map.put(student, mark);
        }
    }
    Iterator iterator = map.entrySet().iterator();

    if (map.size() >= 10) {
        this.setComboBoxMark(markSemesterIByStudent1Model, markSemesterIIByStudent1Model, subject);
        this.setComboBoxMark(markSemesterIByStudent2Model, markSemesterIIByStudent2Model, subject);
        this.setComboBoxMark(markSemesterIByStudent3Model, markSemesterIIByStudent3Model, subject);
        this.setComboBoxMark(markSemesterIByStudent4Model, markSemesterIIByStudent4Model, subject);
        this.setComboBoxMark(markSemesterIByStudent5Model, markSemesterIIByStudent5Model, subject);
        this.setComboBoxMark(markSemesterIByStudent6Model, markSemesterIIByStudent6Model, subject);
        this.setComboBoxMark(markSemesterIByStudent7Model, markSemesterIIByStudent7Model, subject);
        this.setComboBoxMark(markSemesterIByStudent8Model, markSemesterIIByStudent8Model, subject);
        this.setComboBoxMark(markSemesterIByStudent9Model, markSemesterIIByStudent9Model, subject);
        this.setComboBoxMark(markSemesterIByStudent10Model, markSemesterIIByStudent10Model, subject);

        Student student = null;
        Mark mark = null;

        while (this.count < 10) {
            Map.Entry<Student, Mark> mEntry = (Map.Entry<Student, Mark>) iterator.next();

            student = mEntry.getKey();
            mark = mEntry.getValue();

            switch (this.count) {
                case 0:
                    this.setComponentsForMark(lblStudentID1, lblStudentName1, cbbMarkSemesterIByStudent1, cbbMarkSemesterIIByStudent1, student, mark);
                    break;
                case 1:
                    this.setComponentsForMark(lblStudentID2, lblStudentName2, cbbMarkSemesterIByStudent2, cbbMarkSemesterIIByStudent2, student, mark);
                    break;
                case 2:
                    this.setComponentsForMark(lblStudentID3, lblStudentName3, cbbMarkSemesterIByStudent3, cbbMarkSemesterIIByStudent3, student, mark);
                    break;
                case 3:
                    this.setComponentsForMark(lblStudentID4, lblStudentName4, cbbMarkSemesterIByStudent4, cbbMarkSemesterIIByStudent4, student, mark);
                    break;
                case 4:
                    this.setComponentsForMark(lblStudentID5, lblStudentName5, cbbMarkSemesterIByStudent5, cbbMarkSemesterIIByStudent5, student, mark);
                    break;
                case 5:
                    this.setComponentsForMark(lblStudentID6, lblStudentName6, cbbMarkSemesterIByStudent6, cbbMarkSemesterIIByStudent6, student, mark);
                    break;
                case 6:
                    this.setComponentsForMark(lblStudentID7, lblStudentName7, cbbMarkSemesterIByStudent7, cbbMarkSemesterIIByStudent7, student, mark);
                    break;
                case 7:
                    this.setComponentsForMark(lblStudentID8, lblStudentName8, cbbMarkSemesterIByStudent8, cbbMarkSemesterIIByStudent8, student, mark);
                    break;
                case 8:
                    this.setComponentsForMark(lblStudentID9, lblStudentName9, cbbMarkSemesterIByStudent9, cbbMarkSemesterIIByStudent9, student, mark);
                    break;
                case 9:
                    this.setComponentsForMark(lblStudentID10, lblStudentName10, cbbMarkSemesterIByStudent10, cbbMarkSemesterIIByStudent10, student, mark);
                    break;
            }
            this.count++;
        }
    } else if (map.size() > 0) {
    }
}//GEN-LAST:event_listSubjectByClassRoomBlockMouseClicked
    private void setComponentsForMark(JTextField txtStudentID, JTextField txtStudentName, JComboBox cbbMarkSemesterI, JComboBox cbbMarkSemesterII, Student student, Mark mark) {
        txtStudentID.setText(student.getStudentID());
        txtStudentName.setText(student.getStudentName());
        cbbMarkSemesterI.setSelectedItem(mark.getFirstSemesterValue());
        cbbMarkSemesterII.setSelectedItem(mark.getSecondSemesterValue());
    }
    
    private DefaultComboBoxModel markSemesterIByStudent1Model;
    private DefaultComboBoxModel markSemesterIByStudent2Model;
    private DefaultComboBoxModel markSemesterIByStudent3Model;
    private DefaultComboBoxModel markSemesterIByStudent4Model;
    private DefaultComboBoxModel markSemesterIByStudent5Model;
    private DefaultComboBoxModel markSemesterIByStudent6Model;
    private DefaultComboBoxModel markSemesterIByStudent7Model;
    private DefaultComboBoxModel markSemesterIByStudent8Model;
    private DefaultComboBoxModel markSemesterIByStudent9Model;
    private DefaultComboBoxModel markSemesterIByStudent10Model;
    private DefaultComboBoxModel markSemesterIIByStudent1Model;
    private DefaultComboBoxModel markSemesterIIByStudent2Model;
    private DefaultComboBoxModel markSemesterIIByStudent3Model;
    private DefaultComboBoxModel markSemesterIIByStudent4Model;
    private DefaultComboBoxModel markSemesterIIByStudent5Model;
    private DefaultComboBoxModel markSemesterIIByStudent6Model;
    private DefaultComboBoxModel markSemesterIIByStudent7Model;
    private DefaultComboBoxModel markSemesterIIByStudent8Model;
    private DefaultComboBoxModel markSemesterIIByStudent9Model;
    private DefaultComboBoxModel markSemesterIIByStudent10Model;
    private int count = 0;

    private void setComboBoxMark(DefaultComboBoxModel markSemesterIModel, DefaultComboBoxModel markSemesterIIModel, Subject subject) {
        markSemesterIIModel.removeAllElements();
        markSemesterIModel.removeAllElements();

        if (subject.getPointTypeID() == 4) {
            markSemesterIModel.addElement(String.valueOf("No"));
            markSemesterIIModel.addElement(String.valueOf("No"));
            for (int i = 0; i <= 10; i++) {
                markSemesterIModel.addElement(String.valueOf(i));
                markSemesterIIModel.addElement(String.valueOf(i));
            }
        } else if (subject.getPointTypeID() == 6) {
            markSemesterIModel.addElement("No");
            markSemesterIModel.addElement("Đ");
            markSemesterIModel.addElement("CĐ");
            markSemesterIIModel.addElement("No");
            markSemesterIIModel.addElement("Đ");
            markSemesterIIModel.addElement("CĐ");
        } else {
            markSemesterIModel.addElement("No");
            markSemesterIModel.addElement("A+");
            markSemesterIModel.addElement("A");
            markSemesterIModel.addElement("B");
            markSemesterIIModel.addElement("No");
            markSemesterIIModel.addElement("A+");
            markSemesterIIModel.addElement("A");
            markSemesterIIModel.addElement("B");
        }
    }

    private void setComboBoxForMarks(Student student, Class selected) {
        ArrayList<Subject> alSubject = this.manager.getSubjectManager().getSubjectsByClassRoomBlockId(selected.getClassRoomBlockID());
        this.alMarkByStudent = this.manager.getMarkManager().getBySubjectAndStudentID(student.getStudentID(), alSubject);

        Subject subject1 = this.manager.getSubjectManager().getById(this.alMarkByStudent.get(0).getSubjectID());

        this.setComboBoxMark(markSemesterISubject1Model, markSemesterIISubject1Model, subject1);
        this.lblSubjectName1.setText(this.manager.getSubjectManager().getById(this.alMarkByStudent.get(0).getSubjectID()).getSubjectName());
        this.cbbMarkSemesterIOfSubject1.setModel(markSemesterISubject1Model);
        this.cbbMarkSemesterIOfSubject1.setSelectedItem(this.alMarkByStudent.get(0).getFirstSemesterValue());
        this.cbbMarkSemesterIIOfSubject1.setModel(markSemesterIISubject1Model);
        this.cbbMarkSemesterIIOfSubject1.setSelectedItem(this.alMarkByStudent.get(0).getSecondSemesterValue());

        Subject subject2 = this.manager.getSubjectManager().getById(this.alMarkByStudent.get(1).getSubjectID());
        this.setComboBoxMark(markSemesterISubject2Model, markSemesterIISubject2Model, subject2);
        this.lblSubjectName2.setText(this.manager.getSubjectManager().getById(this.alMarkByStudent.get(1).getSubjectID()).getSubjectName());
        this.cbbMarkSemesterIOfSubject2.setModel(markSemesterISubject2Model);
        this.cbbMarkSemesterIOfSubject2.setSelectedItem(this.alMarkByStudent.get(1).getFirstSemesterValue());
        this.cbbMarkSemesterIIOfSubject2.setModel(markSemesterIISubject2Model);
        this.cbbMarkSemesterIIOfSubject2.setSelectedItem(this.alMarkByStudent.get(1).getSecondSemesterValue());

        Subject subject3 = this.manager.getSubjectManager().getById(this.alMarkByStudent.get(2).getSubjectID());
        this.setComboBoxMark(markSemesterISubject3Model, markSemesterIISubject3Model, subject3);
        this.lblSubjectName3.setText(this.manager.getSubjectManager().getById(this.alMarkByStudent.get(2).getSubjectID()).getSubjectName());
        this.cbbMarkSemesterIOfSubject3.setModel(markSemesterISubject3Model);
        this.cbbMarkSemesterIOfSubject3.setSelectedItem(this.alMarkByStudent.get(2).getFirstSemesterValue());
        this.cbbMarkSemesterIIOfSubject3.setModel(markSemesterIISubject3Model);
        this.cbbMarkSemesterIIOfSubject3.setSelectedItem(this.alMarkByStudent.get(2).getSecondSemesterValue());

        Subject subject4 = this.manager.getSubjectManager().getById(this.alMarkByStudent.get(3).getSubjectID());
        this.setComboBoxMark(markSemesterISubject4Model, markSemesterIISubject4Model, subject4);
        this.lblSubjectName4.setText(this.manager.getSubjectManager().getById(this.alMarkByStudent.get(3).getSubjectID()).getSubjectName());
        this.cbbMarkSemesterIOfSubject4.setModel(markSemesterISubject4Model);
        this.cbbMarkSemesterIOfSubject4.setSelectedItem(this.alMarkByStudent.get(3).getFirstSemesterValue());
        this.cbbMarkSemesterIIOfSubject4.setModel(markSemesterIISubject4Model);
        this.cbbMarkSemesterIIOfSubject4.setSelectedItem(this.alMarkByStudent.get(3).getSecondSemesterValue());

        Subject subject5 = this.manager.getSubjectManager().getById(this.alMarkByStudent.get(4).getSubjectID());
        this.setComboBoxMark(markSemesterISubject5Model, markSemesterIISubject5Model, subject5);
        this.lblSubjectName5.setText(this.manager.getSubjectManager().getById(this.alMarkByStudent.get(4).getSubjectID()).getSubjectName());
        this.cbbMarkSemesterIOfSubject5.setModel(markSemesterISubject5Model);
        this.cbbMarkSemesterIOfSubject5.setSelectedItem(this.alMarkByStudent.get(4).getFirstSemesterValue());
        this.cbbMarkSemesterIIOfSubject5.setModel(markSemesterIISubject5Model);
        this.cbbMarkSemesterIIOfSubject5.setSelectedItem(this.alMarkByStudent.get(4).getSecondSemesterValue());

        Subject subject6 = this.manager.getSubjectManager().getById(this.alMarkByStudent.get(5).getSubjectID());
        this.setComboBoxMark(markSemesterISubject6Model, markSemesterIISubject6Model, subject6);
        this.lblSubjectName6.setText(this.manager.getSubjectManager().getById(this.alMarkByStudent.get(5).getSubjectID()).getSubjectName());
        this.cbbMarkSemesterIOfSubject6.setModel(markSemesterISubject6Model);
        this.cbbMarkSemesterIOfSubject6.setSelectedItem(this.alMarkByStudent.get(5).getFirstSemesterValue());
        this.cbbMarkSemesterIIOfSubject6.setModel(markSemesterIISubject6Model);
        this.cbbMarkSemesterIIOfSubject6.setSelectedItem(this.alMarkByStudent.get(5).getSecondSemesterValue());

        Subject subject7 = this.manager.getSubjectManager().getById(this.alMarkByStudent.get(6).getSubjectID());
        this.setComboBoxMark(markSemesterISubject7Model, markSemesterIISubject7Model, subject7);
        this.lblSubjectName7.setText(this.manager.getSubjectManager().getById(this.alMarkByStudent.get(6).getSubjectID()).getSubjectName());
        this.cbbMarkSemesterIOfSubject7.setModel(markSemesterISubject7Model);
        this.cbbMarkSemesterIOfSubject7.setSelectedItem(this.alMarkByStudent.get(6).getFirstSemesterValue());
        this.cbbMarkSemesterIIOfSubject7.setModel(markSemesterIISubject7Model);
        this.cbbMarkSemesterIIOfSubject7.setSelectedItem(this.alMarkByStudent.get(6).getSecondSemesterValue());

        Subject subject8 = this.manager.getSubjectManager().getById(this.alMarkByStudent.get(7).getSubjectID());
        this.setComboBoxMark(markSemesterISubject8Model, markSemesterIISubject8Model, subject8);
        this.lblSubjectName8.setText(this.manager.getSubjectManager().getById(this.alMarkByStudent.get(7).getSubjectID()).getSubjectName());
        this.cbbMarkSemesterIOfSubject8.setModel(markSemesterISubject8Model);
        this.cbbMarkSemesterIOfSubject8.setSelectedItem(this.alMarkByStudent.get(7).getFirstSemesterValue());
        this.cbbMarkSemesterIIOfSubject8.setModel(markSemesterIISubject8Model);
        this.cbbMarkSemesterIIOfSubject8.setSelectedItem(this.alMarkByStudent.get(7).getSecondSemesterValue());

        Subject subject9 = this.manager.getSubjectManager().getById(this.alMarkByStudent.get(8).getSubjectID());
        this.setComboBoxMark(markSemesterISubject9Model, markSemesterIISubject9Model, subject9);
        this.lblSubjectName9.setText(this.manager.getSubjectManager().getById(this.alMarkByStudent.get(8).getSubjectID()).getSubjectName());
        this.cbbMarkSemesterIOfSubject9.setModel(markSemesterISubject9Model);
        this.cbbMarkSemesterIOfSubject9.setSelectedItem(this.alMarkByStudent.get(8).getFirstSemesterValue());
        this.cbbMarkSemesterIIOfSubject9.setModel(markSemesterIISubject9Model);
        this.cbbMarkSemesterIIOfSubject9.setSelectedItem(this.alMarkByStudent.get(8).getSecondSemesterValue());

        if (selected.getClassRoomBlockID() > 3) {
            Subject subject10 = this.manager.getSubjectManager().getById(this.alMarkByStudent.get(9).getSubjectID());
            this.setComboBoxMark(markSemesterISubject10Model, markSemesterIISubject10Model, subject10);
            this.lblSubjectName10.setText(this.manager.getSubjectManager().getById(this.alMarkByStudent.get(9).getSubjectID()).getSubjectName());
            this.cbbMarkSemesterIOfSubject10.setModel(markSemesterISubject10Model);
            this.cbbMarkSemesterIOfSubject10.setSelectedItem(this.alMarkByStudent.get(9).getFirstSemesterValue());
            this.cbbMarkSemesterIIOfSubject10.setModel(markSemesterIISubject10Model);
            this.cbbMarkSemesterIIOfSubject10.setSelectedItem(this.alMarkByStudent.get(9).getSecondSemesterValue());

            Subject subject11 = this.manager.getSubjectManager().getById(this.alMarkByStudent.get(10).getSubjectID());
            this.setComboBoxMark(markSemesterISubject11Model, markSemesterIISubject11Model, subject11);
            this.lblSubjectName11.setText(this.manager.getSubjectManager().getById(this.alMarkByStudent.get(10).getSubjectID()).getSubjectName());
            this.cbbMarkSemesterIOfSubject11.setModel(markSemesterISubject11Model);
            this.cbbMarkSemesterIOfSubject11.setSelectedItem(this.alMarkByStudent.get(10).getFirstSemesterValue());
            this.cbbMarkSemesterIIOfSubject11.setModel(markSemesterIISubject11Model);
            this.cbbMarkSemesterIIOfSubject11.setSelectedItem(this.alMarkByStudent.get(10).getSecondSemesterValue());

            Subject subject12 = this.manager.getSubjectManager().getById(this.alMarkByStudent.get(11).getSubjectID());
            this.setComboBoxMark(markSemesterISubject12Model, markSemesterIISubject12Model, subject12);
            this.lblSubjectName12.setText(this.manager.getSubjectManager().getById(this.alMarkByStudent.get(11).getSubjectID()).getSubjectName());
            this.cbbMarkSemesterIOfSubject12.setModel(markSemesterISubject12Model);
            this.cbbMarkSemesterIOfSubject12.setSelectedItem(this.alMarkByStudent.get(11).getFirstSemesterValue());
            this.cbbMarkSemesterIIOfSubject12.setModel(markSemesterIISubject12Model);
            this.cbbMarkSemesterIIOfSubject12.setSelectedItem(this.alMarkByStudent.get(11).getSecondSemesterValue());

            this.lblSubjectName10.setVisible(true);
            this.lblSubjectName12.setVisible(true);
            this.lblSubjectName11.setVisible(true);
            this.cbbMarkSemesterIIOfSubject10.setVisible(true);
            this.cbbMarkSemesterIIOfSubject11.setVisible(true);
            this.cbbMarkSemesterIIOfSubject12.setVisible(true);
            this.cbbMarkSemesterIOfSubject10.setVisible(true);
            this.cbbMarkSemesterIOfSubject11.setVisible(true);
            this.cbbMarkSemesterIOfSubject12.setVisible(true);
        } else {
            this.lblSubjectName10.setVisible(false);
            this.lblSubjectName12.setVisible(false);
            this.lblSubjectName11.setVisible(false);
            this.cbbMarkSemesterIIOfSubject10.setVisible(false);
            this.cbbMarkSemesterIIOfSubject11.setVisible(false);
            this.cbbMarkSemesterIIOfSubject12.setVisible(false);
            this.cbbMarkSemesterIOfSubject10.setVisible(false);
            this.cbbMarkSemesterIOfSubject11.setVisible(false);
            this.cbbMarkSemesterIOfSubject12.setVisible(false);
        }
    }
    private ArrayList<Mark> alMarkByStudent;

    private static Map<String, CellStyle> createStyles(Workbook wb) {
        Map<String, CellStyle> styles = new HashMap<String, CellStyle>();

        CellStyle style;

        org.apache.poi.ss.usermodel.Font titleFont = wb.createFont();
        titleFont.setFontHeightInPoints((short) 18);
        titleFont.setBoldweight(Font.BOLDWEIGHT_BOLD);

        style = wb.createCellStyle();
        style.setAlignment(CellStyle.ALIGN_CENTER);
        style.setVerticalAlignment(CellStyle.VERTICAL_CENTER);
        style.setFont(titleFont);
        styles.put("title1", style);

        org.apache.poi.ss.usermodel.Font titleFont2 = wb.createFont();
        titleFont2.setFontHeightInPoints((short) 13);

        style = wb.createCellStyle();
        style.setAlignment(CellStyle.ALIGN_CENTER);
        style.setVerticalAlignment(CellStyle.VERTICAL_CENTER);
        style.setFont(titleFont2);
        styles.put("title2", style);

        org.apache.poi.ss.usermodel.Font titleFont3 = wb.createFont();
        titleFont3.setFontHeightInPoints((short) 14);
        titleFont3.setBoldweight(Font.BOLDWEIGHT_NORMAL);

        style = wb.createCellStyle();
        style.setAlignment(CellStyle.ALIGN_CENTER);
        style.setVerticalAlignment(CellStyle.VERTICAL_CENTER);
        style.setFont(titleFont3);
        styles.put("title3", style);

        style = wb.createCellStyle();
        style.setAlignment(CellStyle.ALIGN_CENTER);
        style.setVerticalAlignment(CellStyle.VERTICAL_CENTER);
        style.setFont(titleFont3);
        styles.put("title4", style);

        style = wb.createCellStyle();
        style.setBorderTop(CellStyle.BORDER_THIN);
        style.setTopBorderColor(IndexedColors.BLACK.getIndex());
        styles.put("title5", style);

        org.apache.poi.ss.usermodel.Font headerFont = wb.createFont();
        headerFont.setFontHeightInPoints((short) 12);
        headerFont.setColor(IndexedColors.WHITE.getIndex());

        style = wb.createCellStyle();
        style.setAlignment(CellStyle.ALIGN_CENTER);
        style.setVerticalAlignment(CellStyle.VERTICAL_CENTER);
        style.setBorderTop(CellStyle.BORDER_THIN);
        style.setTopBorderColor(IndexedColors.WHITE.getIndex());
        style.setFillForegroundColor(IndexedColors.GREY_40_PERCENT.getIndex());
        style.setFillPattern(CellStyle.SOLID_FOREGROUND);
        style.setFont(headerFont);
        style.setWrapText(true);
        styles.put("header", style);

        style = wb.createCellStyle();
        style.setAlignment(CellStyle.ALIGN_CENTER);
        style.setWrapText(true);
        style.setBorderRight(CellStyle.BORDER_THIN);
        style.setRightBorderColor(IndexedColors.BLACK.getIndex());
        style.setBorderLeft(CellStyle.BORDER_THIN);
        style.setLeftBorderColor(IndexedColors.BLACK.getIndex());
        style.setBorderTop(CellStyle.BORDER_THIN);
        style.setTopBorderColor(IndexedColors.BLACK.getIndex());
        style.setBorderBottom(CellStyle.BORDER_THIN);
        style.setBottomBorderColor(IndexedColors.BLACK.getIndex());
        styles.put("cell", style);

        style = wb.createCellStyle();
        style.setAlignment(CellStyle.ALIGN_CENTER);
        style.setWrapText(true);
        styles.put("cell1", style);

        style = wb.createCellStyle();
        style.setAlignment(CellStyle.ALIGN_LEFT);
        style.setWrapText(true);
        styles.put("cell2", style);

        style = wb.createCellStyle();
        style.setAlignment(CellStyle.ALIGN_CENTER);
        style.setVerticalAlignment(CellStyle.VERTICAL_CENTER);
        style.setFillForegroundColor(IndexedColors.GREY_25_PERCENT.getIndex());
        style.setFillPattern(CellStyle.SOLID_FOREGROUND);
        style.setDataFormat(wb.createDataFormat().getFormat("0.00"));
        styles.put("formula", style);

        return styles;
    }

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        System.setProperty("Quaqua.tabLayoutPolicy", "wrap");
        try {
            UIManager.setLookAndFeel(ch.randelshofer.quaqua.QuaquaManager.getLookAndFeel());

        } catch (Exception ex) {
            Logger.getLogger(JFrame_SchoolManager.class.getName()).log(Level.SEVERE, null, ex);
        }
        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {

            @Override
            public void run() {
                new JFrame_SchoolManager().setVisible(true);
            }
        });
    }
    private DefaultListModel<Subject> listSubjectForMarkModel;
    private DefaultListModel<Student> listStudentForMarkModel;
    private DefaultListModel<Class> listClassForMarkModel;
    private DefaultComboBoxModel<Student> studentByStudentModel;
    private ResultOfClassTableModel resultOfClassModel;
    private ResultOfStudentTableModel resultOfStudentModel;
    private DefaultComboBoxModel classRoomBlockByStudent;
    private DefaultComboBoxModel periodModel, typePointModel;
    private DefaultComboBoxModel fromYearModel;
    private DefaultComboBoxModel<Class> classComboBoxModel;
    private DefaultComboBoxModel<ClassRoomBlock> classRoomBlockComboBoxModel;
    private DefaultComboBoxModel<Teacher> teacherComboBoxModel;
    private DefaultComboBoxModel<Province> provinceComboBoxModel;
    private manager.Manager manager;
    private AccountListModel accountModel;
    private ClassTableModel classModel;
    private ClassRoomBlockListModel classRoomBlockModel;
    private MarkTableModel markModel;
    private ProvinceListModel provinceModel;
    private SemesterListModel semesterModel;
    private StudentTableModel studentModel;
    private SubjectTableModel subjectModel;
    private TeacherTableModel teacherModel;
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JMenuBar MenuBar;
    private javax.swing.JButton btnAddAccount;
    private javax.swing.JButton btnAddClass;
    private javax.swing.JButton btnAddClassRoomBlock;
    private javax.swing.JButton btnAddMark;
    private javax.swing.JButton btnAddProvince;
    private javax.swing.JButton btnAddSemester;
    private javax.swing.JButton btnAddStudent;
    private javax.swing.JButton btnAddSubject;
    private javax.swing.JButton btnAddTeacher;
    private javax.swing.JButton btnChange;
    private javax.swing.JButton btnDeleteAccount;
    private javax.swing.JButton btnDeleteClass;
    private javax.swing.JButton btnDeleteClassRoomBlock;
    private javax.swing.JButton btnDeleteMark;
    private javax.swing.JButton btnDeleteProvince;
    private javax.swing.JButton btnDeleteSemester;
    private javax.swing.JButton btnDeleteStudent;
    private javax.swing.JButton btnDeleteSubject;
    private javax.swing.JButton btnDeleteTeacher;
    private javax.swing.JButton btnEditClass;
    private javax.swing.JButton btnEditClassRoomBlock;
    private javax.swing.JButton btnEditMark;
    private javax.swing.JButton btnEditProvince;
    private javax.swing.JButton btnEditSemester;
    private javax.swing.JButton btnEditStudent;
    private javax.swing.JButton btnEditSubject;
    private javax.swing.JButton btnEditTeacher;
    private javax.swing.JButton btnEnd;
    private javax.swing.JButton btnFindByAccountID;
    private javax.swing.JButton btnFindByClassNameForClass;
    private javax.swing.JButton btnFindByNameClassRoomBlock;
    private javax.swing.JButton btnFindByNameProvince;
    private javax.swing.JButton btnFindByNameSemester;
    private javax.swing.JButton btnFindByStudentIDForStudent;
    private javax.swing.JButton btnFindBySubjectNameForSubject;
    private javax.swing.JButton btnFindByTeacherNameForTeacher;
    private javax.swing.JButton btnFindResultOfClass;
    private javax.swing.JButton btnFindResultOfStudentByStudent;
    private javax.swing.JButton btnFirst;
    private javax.swing.JButton btnLogin;
    private javax.swing.JButton btnMoveClassForClass;
    private javax.swing.JButton btnNext;
    private javax.swing.JButton btnPrevious;
    private javax.swing.JButton btnResetAccount;
    private javax.swing.JButton btnToPrintByClass;
    private javax.swing.JButton btnToPrintByStudent;
    private javax.swing.JComboBox cbbAllowanceForTeacher;
    private javax.swing.JComboBox cbbClassByStudent;
    private javax.swing.JComboBox cbbClassForStudent;
    private javax.swing.JComboBox cbbClassNameByClass;
    private javax.swing.JComboBox cbbClassNameForClass;
    private javax.swing.JComboBox cbbClassPeriodForSubject;
    private javax.swing.JComboBox cbbClassRoomBlockForClass;
    private javax.swing.JComboBox cbbClassRoomBlockForSubject;
    private javax.swing.JComboBox cbbCriteriaByStudent;
    private javax.swing.JComboBox cbbDayBirthdayForTeacher;
    private javax.swing.JComboBox cbbDayForStudent;
    private javax.swing.JComboBox cbbDayForTeacher;
    private javax.swing.JComboBox cbbFromYearForClass;
    private javax.swing.JComboBox cbbMarkSemesterIByStudent1;
    private javax.swing.JComboBox cbbMarkSemesterIByStudent10;
    private javax.swing.JComboBox cbbMarkSemesterIByStudent2;
    private javax.swing.JComboBox cbbMarkSemesterIByStudent3;
    private javax.swing.JComboBox cbbMarkSemesterIByStudent4;
    private javax.swing.JComboBox cbbMarkSemesterIByStudent5;
    private javax.swing.JComboBox cbbMarkSemesterIByStudent6;
    private javax.swing.JComboBox cbbMarkSemesterIByStudent7;
    private javax.swing.JComboBox cbbMarkSemesterIByStudent8;
    private javax.swing.JComboBox cbbMarkSemesterIByStudent9;
    private javax.swing.JComboBox cbbMarkSemesterIIByStudent1;
    private javax.swing.JComboBox cbbMarkSemesterIIByStudent10;
    private javax.swing.JComboBox cbbMarkSemesterIIByStudent2;
    private javax.swing.JComboBox cbbMarkSemesterIIByStudent3;
    private javax.swing.JComboBox cbbMarkSemesterIIByStudent4;
    private javax.swing.JComboBox cbbMarkSemesterIIByStudent5;
    private javax.swing.JComboBox cbbMarkSemesterIIByStudent6;
    private javax.swing.JComboBox cbbMarkSemesterIIByStudent7;
    private javax.swing.JComboBox cbbMarkSemesterIIByStudent8;
    private javax.swing.JComboBox cbbMarkSemesterIIByStudent9;
    private javax.swing.JComboBox cbbMarkSemesterIIOfSubject1;
    private javax.swing.JComboBox cbbMarkSemesterIIOfSubject10;
    private javax.swing.JComboBox cbbMarkSemesterIIOfSubject11;
    private javax.swing.JComboBox cbbMarkSemesterIIOfSubject12;
    private javax.swing.JComboBox cbbMarkSemesterIIOfSubject2;
    private javax.swing.JComboBox cbbMarkSemesterIIOfSubject3;
    private javax.swing.JComboBox cbbMarkSemesterIIOfSubject4;
    private javax.swing.JComboBox cbbMarkSemesterIIOfSubject5;
    private javax.swing.JComboBox cbbMarkSemesterIIOfSubject6;
    private javax.swing.JComboBox cbbMarkSemesterIIOfSubject7;
    private javax.swing.JComboBox cbbMarkSemesterIIOfSubject8;
    private javax.swing.JComboBox cbbMarkSemesterIIOfSubject9;
    private javax.swing.JComboBox cbbMarkSemesterIOfSubject1;
    private javax.swing.JComboBox cbbMarkSemesterIOfSubject10;
    private javax.swing.JComboBox cbbMarkSemesterIOfSubject11;
    private javax.swing.JComboBox cbbMarkSemesterIOfSubject12;
    private javax.swing.JComboBox cbbMarkSemesterIOfSubject2;
    private javax.swing.JComboBox cbbMarkSemesterIOfSubject3;
    private javax.swing.JComboBox cbbMarkSemesterIOfSubject4;
    private javax.swing.JComboBox cbbMarkSemesterIOfSubject5;
    private javax.swing.JComboBox cbbMarkSemesterIOfSubject6;
    private javax.swing.JComboBox cbbMarkSemesterIOfSubject7;
    private javax.swing.JComboBox cbbMarkSemesterIOfSubject8;
    private javax.swing.JComboBox cbbMarkSemesterIOfSubject9;
    private javax.swing.JComboBox cbbMonthBirthdayForTeacher;
    private javax.swing.JComboBox cbbMonthForStudent;
    private javax.swing.JComboBox cbbMonthForTeacher;
    private javax.swing.JComboBox cbbPointTypeForSubject;
    private javax.swing.JComboBox cbbProvinceForStudent;
    private javax.swing.JComboBox cbbProvinceForTeacher;
    private javax.swing.JComboBox cbbSalaryScoreForTeacher;
    private javax.swing.JComboBox cbbSeniorityScoreForTeacher;
    private javax.swing.JComboBox cbbStudentByStudent;
    private javax.swing.JComboBox cbbTeacherForClass;
    private javax.swing.JComboBox cbbYearBirthdayForTeacher;
    private javax.swing.JComboBox cbbYearForStudent;
    private javax.swing.JComboBox cbbYearForTeacher;
    private javax.swing.ButtonGroup groupButtonFindMark;
    private javax.swing.ButtonGroup groupButtonGender;
    private javax.swing.JMenuItem itemAccountManager;
    private javax.swing.JMenuItem itemChangeAccount;
    private javax.swing.JMenuItem itemClassManager;
    private javax.swing.JMenuItem itemClassRoomBlockManager;
    private javax.swing.JMenuItem itemClose;
    private javax.swing.JMenuItem itemLogin;
    private javax.swing.JMenuItem itemLogout;
    private javax.swing.JMenuItem itemMarkManager;
    private javax.swing.JMenuItem itemProvinceManager;
    private javax.swing.JMenuItem itemResultForClass;
    private javax.swing.JMenuItem itemResultForStudent;
    private javax.swing.JMenuItem itemSemesterManager;
    private javax.swing.JMenuItem itemStudentManager;
    private javax.swing.JMenuItem itemSubjectManager;
    private javax.swing.JMenuItem itemTeacherManager;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JScrollPane jScrollPane3;
    private javax.swing.JScrollPane jScrollPane4;
    private javax.swing.JScrollPane jScrollPane5;
    private javax.swing.JScrollPane jScrollPane6;
    private javax.swing.JTextArea jTextArea1;
    private javax.swing.JScrollPane jsAddress;
    private javax.swing.JScrollPane jsAddressForStudent;
    private javax.swing.JScrollPane jsPaneAccountManager;
    private javax.swing.JScrollPane jsPaneClassManager;
    private javax.swing.JScrollPane jsPaneClassRoomBlockManager;
    private javax.swing.JScrollPane jsPaneProvinceManager;
    private javax.swing.JScrollPane jsPaneResultClassByClass;
    private javax.swing.JScrollPane jsPaneResultCurrentYearOfStudent;
    private javax.swing.JScrollPane jsPaneSemesterManager;
    private javax.swing.JScrollPane jsPaneStudentManager;
    private javax.swing.JScrollPane jsPaneSubjectManager;
    private javax.swing.JScrollPane jsPaneTeacherManager;
    private javax.swing.JScrollPane jsResultOfStudentAllYear;
    private javax.swing.JLabel lblAccountIDForAccount;
    private javax.swing.JLabel lblAccountManager;
    private javax.swing.JLabel lblAddressForStudent;
    private javax.swing.JLabel lblAddressForTeacher;
    private javax.swing.JLabel lblAllowanceForTeacher;
    private javax.swing.JLabel lblBirthDayForStudent;
    private javax.swing.JLabel lblBirthDayForTeacher;
    private javax.swing.JLabel lblChange;
    private javax.swing.JLabel lblChangeUserName;
    private javax.swing.JLabel lblClassForStudent;
    private javax.swing.JLabel lblClassIDForClass;
    private javax.swing.JLabel lblClassManager;
    private javax.swing.JLabel lblClassNameByAllYear1;
    private javax.swing.JLabel lblClassNameByClass;
    private javax.swing.JLabel lblClassNameByCurrentYear;
    private javax.swing.JLabel lblClassNameForClass;
    private javax.swing.JLabel lblClassNameStatisticByClass;
    private javax.swing.JLabel lblClassPeriodForSubject;
    private javax.swing.JLabel lblClassRoomBlockForClass;
    private javax.swing.JLabel lblClassRoomBlockForSubject;
    private javax.swing.JLabel lblClassRoomBlockManager;
    private javax.swing.JLabel lblClassRoomBlockNameForClassRoomBlock;
    private javax.swing.JLabel lblCopyright;
    private javax.swing.JLabel lblDayForTeacher;
    private javax.swing.JLabel lblFatherForStudent;
    private javax.swing.JLabel lblFindByAccountID;
    private javax.swing.JLabel lblFindByClassNameForClass;
    private javax.swing.JLabel lblFindByNameClassRoomBlock;
    private javax.swing.JLabel lblFindByNameProvince;
    private javax.swing.JLabel lblFindByNameSemester;
    private javax.swing.JLabel lblFindByStudentIDNameForMark;
    private javax.swing.JLabel lblFindByStudentIDNameForStudent;
    private javax.swing.JLabel lblFindBySubjectNameForSubject;
    private javax.swing.JLabel lblFindByTeacherNameForTeacher;
    private javax.swing.JLabel lblFromYearForClass;
    private javax.swing.JLabel lblGenderForStudent;
    private javax.swing.JLabel lblGenderForTeacher;
    private javax.swing.JLabel lblHello;
    private javax.swing.JLabel lblLienHe;
    private javax.swing.JLabel lblLienHe1;
    private javax.swing.JLabel lblLienHe2;
    private javax.swing.JLabel lblLienHe3;
    private javax.swing.JLabel lblLienHe4;
    private javax.swing.JLabel lblLienHe5;
    private javax.swing.JLabel lblLienHe6;
    private javax.swing.JLabel lblLienHe7;
    private javax.swing.JLabel lblLienHe8;
    private javax.swing.JLabel lblListAccountManager;
    private javax.swing.JLabel lblListClassManager;
    private javax.swing.JLabel lblListClassRoomBlockManager;
    private javax.swing.JLabel lblListMarkManager;
    private javax.swing.JLabel lblListProvinceManager;
    private javax.swing.JLabel lblListSemesterManager;
    private javax.swing.JLabel lblListStudentManager;
    private javax.swing.JLabel lblListSubjectManager;
    private javax.swing.JLabel lblLogin;
    private javax.swing.JLabel lblMarkManager;
    private javax.swing.JLabel lblNewPassword;
    private javax.swing.JLabel lblOldPassword;
    private javax.swing.JLabel lblPassword;
    private javax.swing.JLabel lblPhoneForStudent;
    private javax.swing.JLabel lblPhoneForTeacher;
    private javax.swing.JLabel lblPointTypeForSubject;
    private javax.swing.JLabel lblProvinceForStudent;
    private javax.swing.JLabel lblProvinceForTeacher;
    private javax.swing.JLabel lblProvinceIDForProvince;
    private javax.swing.JLabel lblProvinceManager;
    private javax.swing.JLabel lblProvinceNameForProvince;
    private javax.swing.JLabel lblResultForBirthday1;
    private javax.swing.JLabel lblResultForBirthdayCurrentYear;
    private javax.swing.JLabel lblResultForClassName1;
    private javax.swing.JLabel lblResultForClassNameCurrentYear;
    private javax.swing.JLabel lblResultForGender1;
    private javax.swing.JLabel lblResultForGenderCurrentYear;
    private javax.swing.JLabel lblResultForStudentID1;
    private javax.swing.JLabel lblResultForStudentIDCurrentYear;
    private javax.swing.JLabel lblResultForStudentName1;
    private javax.swing.JLabel lblResultForStudentNameCurrentYear;
    private javax.swing.JLabel lblResultOfAcademic;
    private javax.swing.JLabel lblResultOfConduct;
    private javax.swing.JLabel lblSalaryScoreForTeacher;
    private javax.swing.JLabel lblSemesterI;
    private javax.swing.JLabel lblSemesterII;
    private javax.swing.JLabel lblSemesterManager;
    private javax.swing.JLabel lblSemesterNameForSemester;
    private javax.swing.JLabel lblSeniorityScoreForTeacher;
    private javax.swing.JLabel lblStatiticsByClass;
    private javax.swing.JLabel lblStatiticsByStudent;
    private javax.swing.JLabel lblStudentBirthdayByAllYear1;
    private javax.swing.JLabel lblStudentBirthdayByCurrentYear;
    private javax.swing.JLabel lblStudentGenderByAllYear1;
    private javax.swing.JLabel lblStudentGenderByCurrentYear;
    private javax.swing.JTextField lblStudentID1;
    private javax.swing.JTextField lblStudentID10;
    private javax.swing.JTextField lblStudentID2;
    private javax.swing.JTextField lblStudentID3;
    private javax.swing.JTextField lblStudentID4;
    private javax.swing.JTextField lblStudentID5;
    private javax.swing.JTextField lblStudentID6;
    private javax.swing.JTextField lblStudentID7;
    private javax.swing.JTextField lblStudentID8;
    private javax.swing.JTextField lblStudentID9;
    private javax.swing.JLabel lblStudentIDByAllYear1;
    private javax.swing.JLabel lblStudentIDByCurrentYear;
    private javax.swing.JLabel lblStudentIDByMark;
    private javax.swing.JLabel lblStudentManager;
    private javax.swing.JTextField lblStudentName1;
    private javax.swing.JTextField lblStudentName10;
    private javax.swing.JTextField lblStudentName2;
    private javax.swing.JTextField lblStudentName3;
    private javax.swing.JTextField lblStudentName4;
    private javax.swing.JTextField lblStudentName5;
    private javax.swing.JTextField lblStudentName6;
    private javax.swing.JTextField lblStudentName7;
    private javax.swing.JTextField lblStudentName8;
    private javax.swing.JTextField lblStudentName9;
    private javax.swing.JLabel lblStudentNameByAllYear1;
    private javax.swing.JLabel lblStudentNameByCurrentYear;
    private javax.swing.JLabel lblStudentNameByMark;
    private javax.swing.JLabel lblStudentNameForStudent;
    private javax.swing.JLabel lblSubjectManager;
    private javax.swing.JLabel lblSubjectName1;
    private javax.swing.JLabel lblSubjectName10;
    private javax.swing.JLabel lblSubjectName11;
    private javax.swing.JLabel lblSubjectName12;
    private javax.swing.JLabel lblSubjectName2;
    private javax.swing.JLabel lblSubjectName3;
    private javax.swing.JLabel lblSubjectName4;
    private javax.swing.JLabel lblSubjectName5;
    private javax.swing.JLabel lblSubjectName6;
    private javax.swing.JLabel lblSubjectName7;
    private javax.swing.JLabel lblSubjectName8;
    private javax.swing.JLabel lblSubjectName9;
    private javax.swing.JLabel lblSubjectNameForSubject;
    private javax.swing.JLabel lblTeacherClassManager;
    private javax.swing.JLabel lblTeacherForClass;
    private javax.swing.JLabel lblTeacherManager;
    private javax.swing.JLabel lblTeacherNameByClass;
    private javax.swing.JLabel lblTeacherNameForTeacher;
    private javax.swing.JLabel lblTeacherNameStatisticByClass;
    private javax.swing.JLabel lblToYearForClass;
    private javax.swing.JLabel lblUserName;
    private javax.swing.JList listAccountManager;
    private javax.swing.JList listClassForMark;
    private javax.swing.JList listClassRoomBlockForMark;
    private javax.swing.JList listClassRoomBlockManager;
    private javax.swing.JList listProvinceManager;
    private javax.swing.JList listSemesterManager;
    private javax.swing.JList listStudentForMark;
    private javax.swing.JList listSubjectByClassRoomBlock;
    private javax.swing.JLabel llbMotherForStudent;
    private javax.swing.JMenu mnuFile;
    private javax.swing.JMenu mnuManager;
    private javax.swing.JMenu mnuStatistic;
    private javax.swing.JPasswordField pfNewPassword;
    private javax.swing.JPasswordField pfOldPassword;
    private javax.swing.JPasswordField pfPassword;
    private javax.swing.JPanel pnAccountManagerRightCenterFooter;
    private javax.swing.JPanel pnProvinceManagerRightCenterFooter;
    private javax.swing.JPanel pnlAccountManager;
    private javax.swing.JPanel pnlAccountManagerLeft;
    private javax.swing.JPanel pnlAccountManagerLeftCenter;
    private javax.swing.JPanel pnlAccountManagerLeftFooter;
    private javax.swing.JPanel pnlAccountManagerLeftHeader;
    private javax.swing.JPanel pnlAccountManagerRight;
    private javax.swing.JPanel pnlAccountManagerRightCenter;
    private javax.swing.JPanel pnlAccountManagerRightCenterCenter;
    private javax.swing.JPanel pnlAccountManagerRightCenterHeader;
    private javax.swing.JPanel pnlAccountManagerRightHeader;
    private javax.swing.JPanel pnlAllYearByStudent;
    private javax.swing.JPanel pnlCenter;
    private javax.swing.JPanel pnlCenterAllYearByStudent;
    private javax.swing.JPanel pnlCenterByStudent;
    private javax.swing.JPanel pnlCenterStatisticByClass;
    private javax.swing.JPanel pnlCenterStatisticByClassCenter;
    private javax.swing.JPanel pnlCenterStatisticByClassHeader;
    private javax.swing.JPanel pnlChangeAccount;
    private javax.swing.JPanel pnlClassManager;
    private javax.swing.JPanel pnlClassManagerLeft;
    private javax.swing.JPanel pnlClassManagerLeftCenter;
    private javax.swing.JPanel pnlClassManagerLeftFooter;
    private javax.swing.JPanel pnlClassManagerLeftHeader;
    private javax.swing.JPanel pnlClassManagerRight;
    private javax.swing.JPanel pnlClassManagerRightCenter;
    private javax.swing.JPanel pnlClassManagerRightCenterCenter;
    private javax.swing.JPanel pnlClassManagerRightCenterFooter;
    private javax.swing.JPanel pnlClassManagerRightCenterHeader;
    private javax.swing.JPanel pnlClassManagerRightHeader;
    private javax.swing.JPanel pnlClassRoomBlockManager;
    private javax.swing.JPanel pnlClassRoomBlockManagerLeft;
    private javax.swing.JPanel pnlClassRoomBlockManagerLeftCenter;
    private javax.swing.JPanel pnlClassRoomBlockManagerLeftFooter;
    private javax.swing.JPanel pnlClassRoomBlockManagerLeftHeader;
    private javax.swing.JPanel pnlClassRoomBlockManagerRight;
    private javax.swing.JPanel pnlClassRoomBlockManagerRightCenter;
    private javax.swing.JPanel pnlClassRoomBlockManagerRightCenterCenter;
    private javax.swing.JPanel pnlClassRoomBlockManagerRightCenterFooter;
    private javax.swing.JPanel pnlClassRoomBlockManagerRightCenterHeader;
    private javax.swing.JPanel pnlClassRoomBlockManagerRightHeader;
    private javax.swing.JPanel pnlCurrentYearByStudent;
    private javax.swing.JPanel pnlCurrentYearByStudentCenter;
    private javax.swing.JPanel pnlCurrentYearByStudentFooter;
    private javax.swing.JPanel pnlCurrentYearByStudentHeader;
    private javax.swing.JPanel pnlFooter;
    private javax.swing.JPanel pnlFooterByStudent;
    private javax.swing.JPanel pnlFooterStatisticByClass;
    private javax.swing.JPanel pnlHeader;
    private javax.swing.JPanel pnlHeaderByStudent;
    private javax.swing.JPanel pnlHeaderList;
    private javax.swing.JPanel pnlHeaderOfStudentAllYear;
    private javax.swing.JPanel pnlHeaderStatisticByClass;
    private javax.swing.JPanel pnlHome;
    private javax.swing.JPanel pnlLogin;
    private javax.swing.JPanel pnlMarkManager;
    private javax.swing.JPanel pnlMarkManagerLeft;
    private javax.swing.JPanel pnlMarkManagerLeftCenter;
    private javax.swing.JPanel pnlMarkManagerLeftFooter;
    private javax.swing.JPanel pnlMarkManagerLeftHeader;
    private javax.swing.JPanel pnlMarkManagerRight;
    private javax.swing.JPanel pnlMarkManagerRightCenter;
    private javax.swing.JPanel pnlMarkManagerRightCenterCenter;
    private javax.swing.JPanel pnlMarkManagerRightCenterFooter;
    private javax.swing.JPanel pnlMarkManagerRightCenterHeader;
    private javax.swing.JPanel pnlMarkManagerRightHeader;
    private javax.swing.JPanel pnlProvinceManager;
    private javax.swing.JPanel pnlProvinceManagerLeft;
    private javax.swing.JPanel pnlProvinceManagerLeftCenter;
    private javax.swing.JPanel pnlProvinceManagerLeftFooter;
    private javax.swing.JPanel pnlProvinceManagerLeftHeader;
    private javax.swing.JPanel pnlProvinceManagerRight;
    private javax.swing.JPanel pnlProvinceManagerRightCenter;
    private javax.swing.JPanel pnlProvinceManagerRightCenterCenter;
    private javax.swing.JPanel pnlProvinceManagerRightCenterHeader;
    private javax.swing.JPanel pnlProvinceManagerRightHeader;
    private javax.swing.JPanel pnlSemesterManager;
    private javax.swing.JPanel pnlSemesterManagerLeft;
    private javax.swing.JPanel pnlSemesterManagerLeftCenter;
    private javax.swing.JPanel pnlSemesterManagerLeftFooter;
    private javax.swing.JPanel pnlSemesterManagerLeftHeader;
    private javax.swing.JPanel pnlSemesterManagerRight;
    private javax.swing.JPanel pnlSemesterManagerRightCenter;
    private javax.swing.JPanel pnlSemesterManagerRightCenterCenter;
    private javax.swing.JPanel pnlSemesterManagerRightCenterFooter;
    private javax.swing.JPanel pnlSemesterManagerRightCenterHeader;
    private javax.swing.JPanel pnlSemesterManagerRightHeader;
    private javax.swing.JPanel pnlShowMarkByStudent;
    private javax.swing.JPanel pnlShowMarkBySubject;
    private javax.swing.JPanel pnlStatisticByClass;
    private javax.swing.JPanel pnlStatisticByStudent;
    private javax.swing.JPanel pnlStudentManager;
    private javax.swing.JPanel pnlStudentManagerLeft;
    private javax.swing.JPanel pnlStudentManagerLeftCenter;
    private javax.swing.JPanel pnlStudentManagerLeftFooter;
    private javax.swing.JPanel pnlStudentManagerLeftHeader;
    private javax.swing.JPanel pnlStudentManagerRight;
    private javax.swing.JPanel pnlStudentManagerRightCenter;
    private javax.swing.JPanel pnlStudentManagerRightCenterCenter;
    private javax.swing.JPanel pnlStudentManagerRightCenterFooter;
    private javax.swing.JPanel pnlStudentManagerRightCenterHeader;
    private javax.swing.JPanel pnlStudentManagerRightHeader;
    private javax.swing.JPanel pnlSubjectManager;
    private javax.swing.JPanel pnlSubjectManagerLeft;
    private javax.swing.JPanel pnlSubjectManagerLeftCenter;
    private javax.swing.JPanel pnlSubjectManagerLeftFooter;
    private javax.swing.JPanel pnlSubjectManagerLeftHeader;
    private javax.swing.JPanel pnlSubjectManagerRight;
    private javax.swing.JPanel pnlSubjectManagerRightCenter;
    private javax.swing.JPanel pnlSubjectManagerRightCenterCenter;
    private javax.swing.JPanel pnlSubjectManagerRightCenterFooter;
    private javax.swing.JPanel pnlSubjectManagerRightCenterHeader;
    private javax.swing.JPanel pnlSubjectManagerRightHeader;
    private javax.swing.JPanel pnlTeacherManager;
    private javax.swing.JPanel pnlTeacherManagerLeft;
    private javax.swing.JPanel pnlTeacherManagerLeftCenter;
    private javax.swing.JPanel pnlTeacherManagerLeftCenterCenter;
    private javax.swing.JPanel pnlTeacherManagerLeftCenterFooter;
    private javax.swing.JPanel pnlTeacherManagerLeftFooter;
    private javax.swing.JPanel pnlTeacherManagerLeftHeader;
    private javax.swing.JPanel pnlTeacherManagerRight;
    private javax.swing.JPanel pnlTeacherManagerRightCenter;
    private javax.swing.JPanel pnlTeacherManagerRightCenterCenter;
    private javax.swing.JPanel pnlTeacherManagerRightCenterFooter;
    private javax.swing.JPanel pnlTeacherManagerRightCenterHeader;
    private javax.swing.JPanel pnlTeacherManagerRightHeader;
    private javax.swing.JRadioButton rdByStudent;
    private javax.swing.JRadioButton rdBySubject;
    private javax.swing.JRadioButton rdFemaleForStudent;
    private javax.swing.JRadioButton rdFemaleForTeacher;
    private javax.swing.JRadioButton rdMaleForStudent;
    private javax.swing.JRadioButton rdMaleForTeacher;
    private javax.swing.JPopupMenu.Separator separatorOne;
    private javax.swing.JTable tblClassManager;
    private javax.swing.JTable tblResultClassByClass;
    private javax.swing.JTable tblResultCurrentYearOfStudent;
    private javax.swing.JTable tblResultOfStudentAllYear;
    private javax.swing.JTable tblStudentManager;
    private javax.swing.JTable tblSubjectManager;
    private javax.swing.JTable tblTeacherManager;
    private javax.swing.JTextArea txaAddressForStudent;
    private javax.swing.JTextArea txaAddressForTeacher;
    private javax.swing.JTextArea txaCommentOfTeacher;
    private javax.swing.JTextField txtAccountIDForAccount;
    private javax.swing.JTextField txtChangeUserName;
    private javax.swing.JTextField txtClassIDForClass;
    private javax.swing.JTextField txtClassRoomBlockNameForClassRoomBlock;
    private javax.swing.JTextField txtFatherForStudent;
    private javax.swing.JTextField txtFindByAccountID;
    private javax.swing.JTextField txtFindByClassNameForClass;
    private javax.swing.JTextField txtFindByNameClassRoomBlock;
    private javax.swing.JTextField txtFindByNameProvince;
    private javax.swing.JTextField txtFindByNameSemester;
    private javax.swing.JTextField txtFindByStudentIDForStudent;
    private javax.swing.JTextField txtFindBySubjectNameForSubject;
    private javax.swing.JTextField txtFindByTeacherNameForTeacher;
    private javax.swing.JTextField txtMotherForStudent;
    private javax.swing.JTextField txtPhoneForStudent;
    private javax.swing.JTextField txtPhoneForTeacher;
    private javax.swing.JTextField txtProvinceIDForProvince;
    private javax.swing.JTextField txtProvinceNameForProvince;
    private javax.swing.JTextField txtSemesterNameForSemester;
    private javax.swing.JTextField txtStudentNameForStudent;
    private javax.swing.JTextField txtSubjectNameForSubject;
    private javax.swing.JTextField txtTeacherNameForTeacher;
    private javax.swing.JTextField txtToYearForClass;
    private javax.swing.JTextField txtUserName;
    // End of variables declaration//GEN-END:variables
}